home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1994-08-27 | 47.8 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 53 61 74 20 | 41 75 67 20 32 37 20 31 | on Sat |Aug 27 1|
|00000040| 35 3a 30 37 3a 33 34 20 | 31 39 39 34 0a 3b 3b 3b |5:07:34 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 66 73 66 2f 72 6d 73 | 2f 65 31 39 2f 6c 69 73 |/fsf/rms|/e19/lis|
|00000070| 70 2f 63 6f 6d 69 6e 74 | 2e 65 6c 0a 3b 3b 3b 20 |p/comint|.el.;;; |
|00000080| 65 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 31 39 |emacs ve|rsion 19|
|00000090| 2e 32 35 2e 39 34 2e 31 | 2e 0a 3b 3b 3b 20 62 79 |.25.94.1|..;;; by|
|000000a0| 74 65 63 6f 6d 70 20 76 | 65 72 73 69 6f 6e 20 46 |tecomp v|ersion F|
|000000b0| 53 46 20 32 2e 31 30 0a | 3b 3b 3b 20 6f 70 74 69 |SF 2.10.|;;; opti|
|000000c0| 6d 69 7a 61 74 69 6f 6e | 20 69 73 20 6f 6e 2e 0a |mization| is on..|
|000000d0| 3b 3b 3b 20 74 68 69 73 | 20 66 69 6c 65 20 75 73 |;;; this| file us|
|000000e0| 65 73 20 6f 70 63 6f 64 | 65 73 20 77 68 69 63 68 |es opcod|es which|
|000000f0| 20 64 6f 20 6e 6f 74 20 | 65 78 69 73 74 20 69 6e | do not |exist in|
|00000100| 20 45 6d 61 63 73 20 31 | 38 2e 0a 0a 28 69 66 20 | Emacs 1|8...(if |
|00000110| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 6d |(and (bo|undp 'em|
|00000120| 61 63 73 2d 76 65 72 73 | 69 6f 6e 29 0a 09 20 28 |acs-vers|ion).. (|
|00000130| 6f 72 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |or (and |(boundp |
|00000140| 27 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 |'epoch::|version)|
|00000150| 20 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 | epoch::|version)|
|00000160| 0a 09 20 20 20 20 20 28 | 73 74 72 69 6e 67 2d 6c |.. (|string-l|
|00000170| 65 73 73 70 20 65 6d 61 | 63 73 2d 76 65 72 73 69 |essp ema|cs-versi|
|00000180| 6f 6e 20 22 31 39 22 29 | 29 29 0a 20 20 20 20 28 |on "19")|)). (|
|00000190| 65 72 72 6f 72 20 22 60 | 2f 68 6f 6d 65 2f 66 73 |error "`|/home/fs|
|000001a0| 66 2f 72 6d 73 2f 65 31 | 39 2f 6c 69 73 70 2f 63 |f/rms/e1|9/lisp/c|
|000001b0| 6f 6d 69 6e 74 2e 65 6c | 27 20 77 61 73 20 63 6f |omint.el|' was co|
|000001c0| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|000001d0| 20 31 39 22 29 29 0a 0a | 28 72 65 71 75 69 72 65 | 19"))..|(require|
|000001e0| 20 28 71 75 6f 74 65 20 | 72 69 6e 67 29 29 0a 28 | (quote |ring)).(|
|000001f0| 64 65 66 76 61 72 20 63 | 6f 6d 69 6e 74 2d 70 72 |defvar c|omint-pr|
|00000200| 6f 6d 70 74 2d 72 65 67 | 65 78 70 20 22 5e 22 20 |ompt-reg|exp "^" |
|00000210| 22 5c 0a 52 65 67 65 78 | 70 20 74 6f 20 72 65 63 |"\.Regex|p to rec|
|00000220| 6f 67 6e 69 73 65 20 70 | 72 6f 6d 70 74 73 20 69 |ognise p|rompts i|
|00000230| 6e 20 74 68 65 20 69 6e | 66 65 72 69 6f 72 20 70 |n the in|ferior p|
|00000240| 72 6f 63 65 73 73 2e 0a | 44 65 66 61 75 6c 74 73 |rocess..|Defaults|
|00000250| 20 74 6f 20 5c 22 5e 5c | 22 2c 20 74 68 65 20 6e | to \"^\|", the n|
|00000260| 75 6c 6c 20 73 74 72 69 | 6e 67 20 61 74 20 42 4f |ull stri|ng at BO|
|00000270| 4c 2e 0a 0a 47 6f 6f 64 | 20 63 68 6f 69 63 65 73 |L...Good| choices|
|00000280| 3a 0a 20 20 43 61 6e 6f | 6e 69 63 61 6c 20 4c 69 |:. Cano|nical Li|
|00000290| 73 70 3a 20 5c 22 5e 5b | 5e 3e 20 5c 5c 6e 5d 2a |sp: \"^[|^> \\n]*|
|000002a0| 3e 2b 3a 3f 20 2a 5c 22 | 20 28 4c 75 63 69 64 2c |>+:? *\"| (Lucid,|
|000002b0| 20 66 72 61 6e 7a 2c 20 | 6b 63 6c 2c 20 54 2c 20 | franz, |kcl, T, |
|000002c0| 63 73 63 68 65 6d 65 2c | 20 6f 61 6b 6c 69 73 70 |cscheme,| oaklisp|
|000002d0| 29 0a 20 20 4c 75 63 69 | 64 20 43 6f 6d 6d 6f 6e |). Luci|d Common|
|000002e0| 20 4c 69 73 70 3a 20 5c | 22 5e 5c 5c 5c 5c 28 3e | Lisp: \|"^\\\\(>|
|000002f0| 5c 5c 5c 5c 7c 5c 5c 5c | 5c 28 2d 3e 5c 5c 5c 5c |\\\\|\\\|\(->\\\\|
|00000300| 29 2b 5c 5c 5c 5c 29 20 | 2a 5c 22 0a 20 20 66 72 |)+\\\\) |*\". fr|
|00000310| 61 6e 7a 3a 20 5c 22 5e | 5c 5c 5c 5c 28 2d 3e 5c |anz: \"^|\\\\(->\|
|00000320| 5c 5c 5c 7c 3c 5b 30 2d | 39 5d 2a 3e 3a 5c 5c 5c |\\\|<[0-|9]*>:\\\|
|00000330| 5c 29 20 2a 5c 22 0a 20 | 20 6b 63 6c 3a 20 5c 22 |\) *\". | kcl: \"|
|00000340| 5e 3e 2b 20 2a 5c 22 0a | 20 20 73 68 65 6c 6c 3a |^>+ *\".| shell:|
|00000350| 20 5c 22 5e 5b 5e 23 24 | 25 3e 5c 5c 6e 5d 2a 5b | \"^[^#$|%>\\n]*[|
|00000360| 23 24 25 3e 5d 20 2a 5c | 22 0a 20 20 54 3a 20 5c |#$%>] *\|". T: \|
|00000370| 22 5e 3e 2b 20 2a 5c 22 | 0a 0a 54 68 69 73 20 69 |"^>+ *\"|..This i|
|00000380| 73 20 61 20 67 6f 6f 64 | 20 74 68 69 6e 67 20 74 |s a good| thing t|
|00000390| 6f 20 73 65 74 20 69 6e | 20 6d 6f 64 65 20 68 6f |o set in| mode ho|
|000003a0| 6f 6b 73 2e 22 29 0a 28 | 64 65 66 76 61 72 20 63 |oks.").(|defvar c|
|000003b0| 6f 6d 69 6e 74 2d 64 65 | 6c 69 6d 69 74 65 72 2d |omint-de|limiter-|
|000003c0| 61 72 67 75 6d 65 6e 74 | 2d 6c 69 73 74 20 6e 69 |argument|-list ni|
|000003d0| 6c 20 22 5c 0a 4c 69 73 | 74 20 6f 66 20 63 68 61 |l "\.Lis|t of cha|
|000003e0| 72 61 63 74 65 72 73 20 | 74 6f 20 72 65 63 6f 67 |racters |to recog|
|000003f0| 6e 69 73 65 20 61 73 20 | 73 65 70 61 72 61 74 65 |nise as |separate|
|00000400| 20 61 72 67 75 6d 65 6e | 74 73 20 69 6e 20 69 6e | argumen|ts in in|
|00000410| 70 75 74 2e 0a 53 74 72 | 69 6e 67 73 20 63 6f 6d |put..Str|ings com|
|00000420| 70 72 69 73 69 6e 67 20 | 61 20 63 68 61 72 61 63 |prising |a charac|
|00000430| 74 65 72 20 69 6e 20 74 | 68 69 73 20 6c 69 73 74 |ter in t|his list|
|00000440| 20 77 69 6c 6c 20 73 65 | 70 61 72 61 74 65 20 74 | will se|parate t|
|00000450| 68 65 20 61 72 67 75 6d | 65 6e 74 73 0a 73 75 72 |he argum|ents.sur|
|00000460| 72 6f 75 6e 64 69 6e 67 | 20 74 68 65 6d 2c 20 61 |rounding| them, a|
|00000470| 6e 64 20 61 6c 73 6f 20 | 62 65 20 72 65 67 61 72 |nd also |be regar|
|00000480| 64 65 64 20 61 73 20 61 | 72 67 75 6d 65 6e 74 73 |ded as a|rguments|
|00000490| 20 69 6e 20 74 68 65 69 | 72 20 6f 77 6e 20 72 69 | in thei|r own ri|
|000004a0| 67 68 74 20 28 75 6e 6c | 69 6b 65 0a 77 68 69 74 |ght (unl|ike.whit|
|000004b0| 65 73 70 61 63 65 29 2e | 20 20 53 65 65 20 60 63 |espace).| See `c|
|000004c0| 6f 6d 69 6e 74 2d 61 72 | 67 75 6d 65 6e 74 73 27 |omint-ar|guments'|
|000004d0| 2e 0a 44 65 66 61 75 6c | 74 73 20 74 6f 20 74 68 |..Defaul|ts to th|
|000004e0| 65 20 65 6d 70 74 79 20 | 6c 69 73 74 2e 0a 0a 46 |e empty |list...F|
|000004f0| 6f 72 20 73 68 65 6c 6c | 73 2c 20 61 20 67 6f 6f |or shell|s, a goo|
|00000500| 64 20 76 61 6c 75 65 20 | 69 73 20 28 3f 5c 5c 7c |d value |is (?\\||
|00000510| 20 3f 26 20 3f 3c 20 3f | 3e 20 3f 5c 5c 28 20 3f | ?& ?< ?|> ?\\( ?|
|00000520| 5c 5c 29 20 3f 3b 29 2e | 0a 0a 54 68 69 73 20 69 |\\) ?;).|..This i|
|00000530| 73 20 61 20 67 6f 6f 64 | 20 74 68 69 6e 67 20 74 |s a good| thing t|
|00000540| 6f 20 73 65 74 20 69 6e | 20 6d 6f 64 65 20 68 6f |o set in| mode ho|
|00000550| 6f 6b 73 2e 22 29 0a 28 | 64 65 66 76 61 72 20 63 |oks.").(|defvar c|
|00000560| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 61 75 74 6f |omint-in|put-auto|
|00000570| 65 78 70 61 6e 64 20 6e | 69 6c 20 22 5c 0a 2a 49 |expand n|il "\.*I|
|00000580| 66 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 65 78 70 61 6e |f non-ni|l, expan|
|00000590| 64 20 69 6e 70 75 74 20 | 63 6f 6d 6d 61 6e 64 20 |d input |command |
|000005a0| 68 69 73 74 6f 72 79 20 | 72 65 66 65 72 65 6e 63 |history |referenc|
|000005b0| 65 73 20 6f 6e 20 63 6f | 6d 70 6c 65 74 69 6f 6e |es on co|mpletion|
|000005c0| 2e 0a 54 68 69 73 20 6d | 69 72 72 6f 72 73 20 74 |..This m|irrors t|
|000005d0| 68 65 20 6f 70 74 69 6f | 6e 61 6c 20 62 65 68 61 |he optio|nal beha|
|000005e0| 76 69 6f 72 20 6f 66 20 | 74 63 73 68 20 28 69 74 |vior of |tcsh (it|
|000005f0| 73 20 61 75 74 6f 65 78 | 70 61 6e 64 20 61 6e 64 |s autoex|pand and|
|00000600| 20 68 69 73 74 6c 69 74 | 29 2e 0a 0a 49 66 20 74 | histlit|)...If t|
|00000610| 68 65 20 76 61 6c 75 65 | 20 69 73 20 60 69 6e 70 |he value| is `inp|
|00000620| 75 74 27 2c 20 74 68 65 | 6e 20 74 68 65 20 65 78 |ut', the|n the ex|
|00000630| 70 61 6e 73 69 6f 6e 20 | 69 73 20 73 65 65 6e 20 |pansion |is seen |
|00000640| 6f 6e 20 69 6e 70 75 74 | 2e 0a 49 66 20 74 68 65 |on input|..If the|
|00000650| 20 76 61 6c 75 65 20 69 | 73 20 60 68 69 73 74 6f | value i|s `histo|
|00000660| 72 79 27 2c 20 74 68 65 | 6e 20 74 68 65 20 65 78 |ry', the|n the ex|
|00000670| 70 61 6e 73 69 6f 6e 20 | 69 73 20 6f 6e 6c 79 20 |pansion |is only |
|00000680| 77 68 65 6e 20 69 6e 73 | 65 72 74 69 6e 67 0a 69 |when ins|erting.i|
|00000690| 6e 74 6f 20 74 68 65 20 | 62 75 66 66 65 72 27 73 |nto the |buffer's|
|000006a0| 20 69 6e 70 75 74 20 72 | 69 6e 67 2e 20 20 53 65 | input r|ing. Se|
|000006b0| 65 20 61 6c 73 6f 20 60 | 63 6f 6d 69 6e 74 2d 6d |e also `|comint-m|
|000006c0| 61 67 69 63 2d 73 70 61 | 63 65 27 20 61 6e 64 0a |agic-spa|ce' and.|
|000006d0| 60 63 6f 6d 69 6e 74 2d | 64 79 6e 61 6d 69 63 2d |`comint-|dynamic-|
|000006e0| 63 6f 6d 70 6c 65 74 65 | 27 2e 0a 0a 54 68 69 73 |complete|'...This|
|000006f0| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 62 75 66 | variabl|e is buf|
|00000700| 66 65 72 2d 6c 6f 63 61 | 6c 2e 22 29 0a 28 64 65 |fer-loca|l.").(de|
|00000710| 66 76 61 72 20 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |fvar com|int-inpu|
|00000720| 74 2d 69 67 6e 6f 72 65 | 64 75 70 73 20 6e 69 6c |t-ignore|dups nil|
|00000730| 20 22 5c 0a 2a 49 66 20 | 6e 6f 6e 2d 6e 69 6c 2c | "\.*If |non-nil,|
|00000740| 20 64 6f 6e 27 74 20 61 | 64 64 20 69 6e 70 75 74 | don't a|dd input|
|00000750| 20 6d 61 74 63 68 69 6e | 67 20 74 68 65 20 6c 61 | matchin|g the la|
|00000760| 73 74 20 6f 6e 20 74 68 | 65 20 69 6e 70 75 74 20 |st on th|e input |
|00000770| 72 69 6e 67 2e 0a 54 68 | 69 73 20 6d 69 72 72 6f |ring..Th|is mirro|
|00000780| 72 73 20 74 68 65 20 6f | 70 74 69 6f 6e 61 6c 20 |rs the o|ptional |
|00000790| 62 65 68 61 76 69 6f 72 | 20 6f 66 20 62 61 73 68 |behavior| of bash|
|000007a0| 2e 0a 0a 54 68 69 73 20 | 76 61 72 69 61 62 6c 65 |...This |variable|
|000007b0| 20 69 73 20 62 75 66 66 | 65 72 2d 6c 6f 63 61 6c | is buff|er-local|
|000007c0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 63 6f 6d 69 |.").(def|var comi|
|000007d0| 6e 74 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 66 69 |nt-input|-ring-fi|
|000007e0| 6c 65 2d 6e 61 6d 65 20 | 6e 69 6c 20 22 5c 0a 2a |le-name |nil "\.*|
|000007f0| 49 66 20 6e 6f 6e 2d 6e | 69 6c 2c 20 6e 61 6d 65 |If non-n|il, name|
|00000800| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 20 74 6f 20 | of the |file to |
|00000810| 72 65 61 64 2f 77 72 69 | 74 65 20 69 6e 70 75 74 |read/wri|te input|
|00000820| 20 68 69 73 74 6f 72 79 | 2e 0a 53 65 65 20 61 6c | history|..See al|
|00000830| 73 6f 20 60 63 6f 6d 69 | 6e 74 2d 72 65 61 64 2d |so `comi|nt-read-|
|00000840| 69 6e 70 75 74 2d 72 69 | 6e 67 27 20 61 6e 64 20 |input-ri|ng' and |
|00000850| 60 63 6f 6d 69 6e 74 2d | 77 72 69 74 65 2d 69 6e |`comint-|write-in|
|00000860| 70 75 74 2d 72 69 6e 67 | 27 2e 0a 0a 54 68 69 73 |put-ring|'...This|
|00000870| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 62 75 66 | variabl|e is buf|
|00000880| 66 65 72 2d 6c 6f 63 61 | 6c 2c 20 61 6e 64 20 69 |fer-loca|l, and i|
|00000890| 73 20 61 20 67 6f 6f 64 | 20 74 68 69 6e 67 20 74 |s a good| thing t|
|000008a0| 6f 20 73 65 74 20 69 6e | 20 6d 6f 64 65 20 68 6f |o set in| mode ho|
|000008b0| 6f 6b 73 2e 22 29 0a 28 | 64 65 66 76 61 72 20 63 |oks.").(|defvar c|
|000008c0| 6f 6d 69 6e 74 2d 73 63 | 72 6f 6c 6c 2d 74 6f 2d |omint-sc|roll-to-|
|000008d0| 62 6f 74 74 6f 6d 2d 6f | 6e 2d 69 6e 70 75 74 20 |bottom-o|n-input |
|000008e0| 6e 69 6c 20 22 5c 0a 2a | 43 6f 6e 74 72 6f 6c 73 |nil "\.*|Controls|
|000008f0| 20 77 68 65 74 68 65 72 | 20 69 6e 70 75 74 20 74 | whether| input t|
|00000900| 6f 20 69 6e 74 65 72 70 | 72 65 74 65 72 20 63 61 |o interp|reter ca|
|00000910| 75 73 65 73 20 77 69 6e | 64 6f 77 20 74 6f 20 73 |uses win|dow to s|
|00000920| 63 72 6f 6c 6c 2e 0a 49 | 66 20 6e 69 6c 2c 20 74 |croll..I|f nil, t|
|00000930| 68 65 6e 20 64 6f 20 6e | 6f 74 20 73 63 72 6f 6c |hen do n|ot scrol|
|00000940| 6c 2e 20 20 49 66 20 74 | 20 6f 72 20 60 61 6c 6c |l. If t| or `all|
|00000950| 27 2c 20 73 63 72 6f 6c | 6c 20 61 6c 6c 20 77 69 |', scrol|l all wi|
|00000960| 6e 64 6f 77 73 20 73 68 | 6f 77 69 6e 67 20 62 75 |ndows sh|owing bu|
|00000970| 66 66 65 72 2e 0a 49 66 | 20 60 74 68 69 73 27 2c |ffer..If| `this',|
|00000980| 20 73 63 72 6f 6c 6c 20 | 6f 6e 6c 79 20 74 68 65 | scroll |only the|
|00000990| 20 73 65 6c 65 63 74 65 | 64 20 77 69 6e 64 6f 77 | selecte|d window|
|000009a0| 2e 0a 0a 54 68 65 20 64 | 65 66 61 75 6c 74 20 69 |...The d|efault i|
|000009b0| 73 20 6e 69 6c 2e 0a 0a | 53 65 65 20 60 63 6f 6d |s nil...|See `com|
|000009c0| 69 6e 74 2d 70 72 65 69 | 6e 70 75 74 2d 73 63 72 |int-prei|nput-scr|
|000009d0| 6f 6c 6c 2d 74 6f 2d 62 | 6f 74 74 6f 6d 27 2e 20 |oll-to-b|ottom'. |
|000009e0| 20 54 68 69 73 20 76 61 | 72 69 61 62 6c 65 20 69 | This va|riable i|
|000009f0| 73 20 62 75 66 66 65 72 | 2d 6c 6f 63 61 6c 2e 22 |s buffer|-local."|
|00000a00| 29 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |).(defva|r comint|
|00000a10| 2d 73 63 72 6f 6c 6c 2d | 74 6f 2d 62 6f 74 74 6f |-scroll-|to-botto|
|00000a20| 6d 2d 6f 6e 2d 6f 75 74 | 70 75 74 20 6e 69 6c 20 |m-on-out|put nil |
|00000a30| 22 5c 0a 2a 43 6f 6e 74 | 72 6f 6c 73 20 77 68 65 |"\.*Cont|rols whe|
|00000a40| 74 68 65 72 20 69 6e 74 | 65 72 70 72 65 74 65 72 |ther int|erpreter|
|00000a50| 20 6f 75 74 70 75 74 20 | 63 61 75 73 65 73 20 77 | output |causes w|
|00000a60| 69 6e 64 6f 77 20 74 6f | 20 73 63 72 6f 6c 6c 2e |indow to| scroll.|
|00000a70| 0a 49 66 20 6e 69 6c 2c | 20 74 68 65 6e 20 64 6f |.If nil,| then do|
|00000a80| 20 6e 6f 74 20 73 63 72 | 6f 6c 6c 2e 20 20 49 66 | not scr|oll. If|
|00000a90| 20 74 20 6f 72 20 60 61 | 6c 6c 27 2c 20 73 63 72 | t or `a|ll', scr|
|00000aa0| 6f 6c 6c 20 61 6c 6c 20 | 77 69 6e 64 6f 77 73 20 |oll all |windows |
|00000ab0| 73 68 6f 77 69 6e 67 20 | 62 75 66 66 65 72 2e 0a |showing |buffer..|
|00000ac0| 49 66 20 60 74 68 69 73 | 27 2c 20 73 63 72 6f 6c |If `this|', scrol|
|00000ad0| 6c 20 6f 6e 6c 79 20 74 | 68 65 20 73 65 6c 65 63 |l only t|he selec|
|00000ae0| 74 65 64 20 77 69 6e 64 | 6f 77 2e 0a 49 66 20 60 |ted wind|ow..If `|
|00000af0| 6f 74 68 65 72 73 27 2c | 20 73 63 72 6f 6c 6c 20 |others',| scroll |
|00000b00| 6f 6e 6c 79 20 74 68 6f | 73 65 20 74 68 61 74 20 |only tho|se that |
|00000b10| 61 72 65 20 6e 6f 74 20 | 74 68 65 20 73 65 6c 65 |are not |the sele|
|00000b20| 63 74 65 64 20 77 69 6e | 64 6f 77 2e 0a 0a 54 68 |cted win|dow...Th|
|00000b30| 65 20 64 65 66 61 75 6c | 74 20 69 73 20 6e 69 6c |e defaul|t is nil|
|00000b40| 2e 0a 0a 53 65 65 20 76 | 61 72 69 61 62 6c 65 20 |...See v|ariable |
|00000b50| 60 63 6f 6d 69 6e 74 2d | 73 63 72 6f 6c 6c 2d 73 |`comint-|scroll-s|
|00000b60| 68 6f 77 2d 6d 61 78 69 | 6d 75 6d 2d 6f 75 74 70 |how-maxi|mum-outp|
|00000b70| 75 74 27 20 61 6e 64 20 | 66 75 6e 63 74 69 6f 6e |ut' and |function|
|00000b80| 0a 60 63 6f 6d 69 6e 74 | 2d 70 6f 73 74 6f 75 74 |.`comint|-postout|
|00000b90| 70 75 74 2d 73 63 72 6f | 6c 6c 2d 74 6f 2d 62 6f |put-scro|ll-to-bo|
|00000ba0| 74 74 6f 6d 27 2e 20 20 | 54 68 69 73 20 76 61 72 |ttom'. |This var|
|00000bb0| 69 61 62 6c 65 20 69 73 | 20 62 75 66 66 65 72 2d |iable is| buffer-|
|00000bc0| 6c 6f 63 61 6c 2e 22 29 | 0a 28 64 65 66 76 61 72 |local.")|.(defvar|
|00000bd0| 20 63 6f 6d 69 6e 74 2d | 73 63 72 6f 6c 6c 2d 73 | comint-|scroll-s|
|00000be0| 68 6f 77 2d 6d 61 78 69 | 6d 75 6d 2d 6f 75 74 70 |how-maxi|mum-outp|
|00000bf0| 75 74 20 6e 69 6c 20 22 | 5c 0a 2a 43 6f 6e 74 72 |ut nil "|\.*Contr|
|00000c00| 6f 6c 73 20 68 6f 77 20 | 69 6e 74 65 72 70 72 65 |ols how |interpre|
|00000c10| 74 65 72 20 6f 75 74 70 | 75 74 20 63 61 75 73 65 |ter outp|ut cause|
|00000c20| 73 20 77 69 6e 64 6f 77 | 20 74 6f 20 73 63 72 6f |s window| to scro|
|00000c30| 6c 6c 2e 0a 49 66 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |ll..If n|on-nil, |
|00000c40| 74 68 65 6e 20 73 68 6f | 77 20 74 68 65 20 6d 61 |then sho|w the ma|
|00000c50| 78 69 6d 75 6d 20 6f 75 | 74 70 75 74 20 77 68 65 |ximum ou|tput whe|
|00000c60| 6e 20 74 68 65 20 77 69 | 6e 64 6f 77 20 69 73 20 |n the wi|ndow is |
|00000c70| 73 63 72 6f 6c 6c 65 64 | 2e 0a 0a 53 65 65 20 76 |scrolled|...See v|
|00000c80| 61 72 69 61 62 6c 65 20 | 60 63 6f 6d 69 6e 74 2d |ariable |`comint-|
|00000c90| 73 63 72 6f 6c 6c 2d 74 | 6f 2d 62 6f 74 74 6f 6d |scroll-t|o-bottom|
|00000ca0| 2d 6f 6e 2d 6f 75 74 70 | 75 74 27 20 61 6e 64 20 |-on-outp|ut' and |
|00000cb0| 66 75 6e 63 74 69 6f 6e | 0a 60 63 6f 6d 69 6e 74 |function|.`comint|
|00000cc0| 2d 70 6f 73 74 6f 75 74 | 70 75 74 2d 73 63 72 6f |-postout|put-scro|
|00000cd0| 6c 6c 2d 74 6f 2d 62 6f | 74 74 6f 6d 27 2e 20 20 |ll-to-bo|ttom'. |
|00000ce0| 54 68 69 73 20 76 61 72 | 69 61 62 6c 65 20 69 73 |This var|iable is|
|00000cf0| 20 62 75 66 66 65 72 2d | 6c 6f 63 61 6c 2e 22 29 | buffer-|local.")|
|00000d00| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|00000d10| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 73 69 7a 65 20 |input-ri|ng-size |
|00000d20| 33 32 20 22 5c 0a 53 69 | 7a 65 20 6f 66 20 69 6e |32 "\.Si|ze of in|
|00000d30| 70 75 74 20 68 69 73 74 | 6f 72 79 20 72 69 6e 67 |put hist|ory ring|
|00000d40| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 63 6f 6d 69 |.").(def|var comi|
|00000d50| 6e 74 2d 70 72 6f 63 65 | 73 73 2d 65 63 68 6f 65 |nt-proce|ss-echoe|
|00000d60| 73 20 6e 69 6c 20 22 5c | 0a 2a 49 66 20 6e 6f 6e |s nil "\|.*If non|
|00000d70| 2d 6e 69 6c 2c 20 61 73 | 73 75 6d 65 20 74 68 61 |-nil, as|sume tha|
|00000d80| 74 20 74 68 65 20 73 75 | 62 70 72 6f 63 65 73 73 |t the su|bprocess|
|00000d90| 20 65 63 68 6f 65 73 20 | 61 6e 79 20 69 6e 70 75 | echoes |any inpu|
|00000da0| 74 2e 0a 49 66 20 73 6f | 2c 20 64 65 6c 65 74 65 |t..If so|, delete|
|00000db0| 20 6f 6e 65 20 63 6f 70 | 79 20 6f 66 20 74 68 65 | one cop|y of the|
|00000dc0| 20 69 6e 70 75 74 20 73 | 6f 20 74 68 61 74 20 6f | input s|o that o|
|00000dd0| 6e 6c 79 20 6f 6e 65 20 | 63 6f 70 79 20 65 76 65 |nly one |copy eve|
|00000de0| 6e 74 75 61 6c 6c 79 0a | 61 70 70 65 61 72 73 20 |ntually.|appears |
|00000df0| 69 6e 20 74 68 65 20 62 | 75 66 66 65 72 2e 0a 0a |in the b|uffer...|
|00000e00| 54 68 69 73 20 76 61 72 | 69 61 62 6c 65 20 69 73 |This var|iable is|
|00000e10| 20 62 75 66 66 65 72 2d | 6c 6f 63 61 6c 2e 22 29 | buffer-|local.")|
|00000e20| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|00000e30| 70 61 73 73 77 6f 72 64 | 2d 70 72 6f 6d 70 74 2d |password|-prompt-|
|00000e40| 72 65 67 65 78 70 20 22 | 5c 5c 28 5e 5b 50 70 5d |regexp "|\\(^[Pp]|
|00000e50| 61 73 73 77 6f 72 64 5c | 5c 7c 70 61 73 73 20 70 |assword\|\|pass p|
|00000e60| 68 72 61 73 65 5c 5c 29 | 3a 5c 5c 73 20 2a 5c 5c |hrase\\)|:\\s *\\|
|00000e70| 27 22 20 22 5c 0a 2a 52 | 65 67 65 78 70 20 6d 61 |'" "\.*R|egexp ma|
|00000e80| 74 63 68 69 6e 67 20 70 | 72 6f 6d 70 74 73 20 66 |tching p|rompts f|
|00000e90| 6f 72 20 70 61 73 73 77 | 6f 72 64 73 20 69 6e 20 |or passw|ords in |
|00000ea0| 74 68 65 20 69 6e 66 65 | 72 69 6f 72 20 70 72 6f |the infe|rior pro|
|00000eb0| 63 65 73 73 2e 0a 54 68 | 69 73 20 69 73 20 75 73 |cess..Th|is is us|
|00000ec0| 65 64 20 62 79 20 60 63 | 6f 6d 69 6e 74 2d 77 61 |ed by `c|omint-wa|
|00000ed0| 74 63 68 2d 66 6f 72 2d | 70 61 73 73 77 6f 72 64 |tch-for-|password|
|00000ee0| 2d 70 72 6f 6d 70 74 27 | 2e 22 29 0a 28 64 65 66 |-prompt'|.").(def|
|00000ef0| 76 61 72 20 63 6f 6d 69 | 6e 74 2d 67 65 74 2d 6f |var comi|nt-get-o|
|00000f00| 6c 64 2d 69 6e 70 75 74 | 20 28 71 75 6f 74 65 20 |ld-input| (quote |
|00000f10| 63 6f 6d 69 6e 74 2d 67 | 65 74 2d 6f 6c 64 2d 69 |comint-g|et-old-i|
|00000f20| 6e 70 75 74 2d 64 65 66 | 61 75 6c 74 29 20 22 5c |nput-def|ault) "\|
|00000f30| 0a 46 75 6e 63 74 69 6f | 6e 20 74 68 61 74 20 72 |.Functio|n that r|
|00000f40| 65 74 75 72 6e 73 20 6f | 6c 64 20 74 65 78 74 20 |eturns o|ld text |
|00000f50| 69 6e 20 63 6f 6d 69 6e | 74 20 6d 6f 64 65 2e 0a |in comin|t mode..|
|00000f60| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |This fun|ction is|
|00000f70| 20 63 61 6c 6c 65 64 20 | 77 68 65 6e 20 72 65 74 | called |when ret|
|00000f80| 75 72 6e 20 69 73 20 74 | 79 70 65 64 20 77 68 69 |urn is t|yped whi|
|00000f90| 6c 65 20 74 68 65 20 70 | 6f 69 6e 74 20 69 73 20 |le the p|oint is |
|00000fa0| 69 6e 20 6f 6c 64 20 74 | 65 78 74 2e 0a 49 74 20 |in old t|ext..It |
|00000fb0| 72 65 74 75 72 6e 73 20 | 74 68 65 20 74 65 78 74 |returns |the text|
|00000fc0| 20 74 6f 20 62 65 20 73 | 75 62 6d 69 74 74 65 64 | to be s|ubmitted|
|00000fd0| 20 61 73 20 70 72 6f 63 | 65 73 73 20 69 6e 70 75 | as proc|ess inpu|
|00000fe0| 74 2e 20 20 54 68 65 20 | 64 65 66 61 75 6c 74 20 |t. The |default |
|00000ff0| 69 73 0a 60 63 6f 6d 69 | 6e 74 2d 67 65 74 2d 6f |is.`comi|nt-get-o|
|00001000| 6c 64 2d 69 6e 70 75 74 | 2d 64 65 66 61 75 6c 74 |ld-input|-default|
|00001010| 27 2c 20 77 68 69 63 68 | 20 67 72 61 62 73 20 74 |', which| grabs t|
|00001020| 68 65 20 63 75 72 72 65 | 6e 74 20 6c 69 6e 65 2c |he curre|nt line,|
|00001030| 20 61 6e 64 20 73 74 72 | 69 70 73 20 6f 66 66 0a | and str|ips off.|
|00001040| 6c 65 61 64 69 6e 67 20 | 74 65 78 74 20 6d 61 74 |leading |text mat|
|00001050| 63 68 69 6e 67 20 60 63 | 6f 6d 69 6e 74 2d 70 72 |ching `c|omint-pr|
|00001060| 6f 6d 70 74 2d 72 65 67 | 65 78 70 27 2e 22 29 0a |ompt-reg|exp'.").|
|00001070| 28 64 65 66 76 61 72 20 | 63 6f 6d 69 6e 74 2d 64 |(defvar |comint-d|
|00001080| 79 6e 61 6d 69 63 2d 63 | 6f 6d 70 6c 65 74 65 2d |ynamic-c|omplete-|
|00001090| 66 75 6e 63 74 69 6f 6e | 73 20 28 71 75 6f 74 65 |function|s (quote|
|000010a0| 20 28 63 6f 6d 69 6e 74 | 2d 72 65 70 6c 61 63 65 | (comint|-replace|
|000010b0| 2d 62 79 2d 65 78 70 61 | 6e 64 65 64 2d 68 69 73 |-by-expa|nded-his|
|000010c0| 74 6f 72 79 20 63 6f 6d | 69 6e 74 2d 64 79 6e 61 |tory com|int-dyna|
|000010d0| 6d 69 63 2d 63 6f 6d 70 | 6c 65 74 65 2d 66 69 6c |mic-comp|lete-fil|
|000010e0| 65 6e 61 6d 65 29 29 20 | 22 5c 0a 4c 69 73 74 20 |ename)) |"\.List |
|000010f0| 6f 66 20 66 75 6e 63 74 | 69 6f 6e 73 20 63 61 6c |of funct|ions cal|
|00001100| 6c 65 64 20 74 6f 20 70 | 65 72 66 6f 72 6d 20 63 |led to p|erform c|
|00001110| 6f 6d 70 6c 65 74 69 6f | 6e 2e 0a 46 75 6e 63 74 |ompletio|n..Funct|
|00001120| 69 6f 6e 73 20 73 68 6f | 75 6c 64 20 72 65 74 75 |ions sho|uld retu|
|00001130| 72 6e 20 6e 6f 6e 2d 6e | 69 6c 20 69 66 20 63 6f |rn non-n|il if co|
|00001140| 6d 70 6c 65 74 69 6f 6e | 20 77 61 73 20 70 65 72 |mpletion| was per|
|00001150| 66 6f 72 6d 65 64 2e 0a | 53 65 65 20 61 6c 73 6f |formed..|See also|
|00001160| 20 60 63 6f 6d 69 6e 74 | 2d 64 79 6e 61 6d 69 63 | `comint|-dynamic|
|00001170| 2d 63 6f 6d 70 6c 65 74 | 65 27 2e 0a 0a 54 68 69 |-complet|e'...Thi|
|00001180| 73 20 69 73 20 61 20 67 | 6f 6f 64 20 74 68 69 6e |s is a g|ood thin|
|00001190| 67 20 74 6f 20 73 65 74 | 20 69 6e 20 6d 6f 64 65 |g to set| in mode|
|000011a0| 20 68 6f 6f 6b 73 2e 22 | 29 0a 28 64 65 66 76 61 | hooks."|).(defva|
|000011b0| 72 20 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 66 |r comint|-input-f|
|000011c0| 69 6c 74 65 72 20 23 5b | 28 73 74 72 29 20 22 c0 |ilter #[|(str) ".|
|000011d0| c1 5c 6e 5c 22 3f 87 22 | 20 5b 73 74 72 69 6e 67 |.\n\"?."| [string|
|000011e0| 2d 6d 61 74 63 68 20 22 | 5c 5c 60 5c 5c 73 20 2a |-match "|\\`\\s *|
|000011f0| 5c 5c 27 22 20 73 74 72 | 5d 20 33 5d 20 22 5c 0a |\\'" str|] 3] "\.|
|00001200| 50 72 65 64 69 63 61 74 | 65 20 66 6f 72 20 66 69 |Predicat|e for fi|
|00001210| 6c 74 65 72 69 6e 67 20 | 61 64 64 69 74 69 6f 6e |ltering |addition|
|00001220| 73 20 74 6f 20 69 6e 70 | 75 74 20 68 69 73 74 6f |s to inp|ut histo|
|00001230| 72 79 2e 0a 54 61 6b 65 | 73 20 6f 6e 65 20 61 72 |ry..Take|s one ar|
|00001240| 67 75 6d 65 6e 74 2c 20 | 74 68 65 20 69 6e 70 75 |gument, |the inpu|
|00001250| 74 2e 20 20 49 66 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |t. If n|on-nil, |
|00001260| 74 68 65 20 69 6e 70 75 | 74 20 6d 61 79 20 62 65 |the inpu|t may be|
|00001270| 20 73 61 76 65 64 20 6f | 6e 20 74 68 65 20 69 6e | saved o|n the in|
|00001280| 70 75 74 0a 68 69 73 74 | 6f 72 79 20 6c 69 73 74 |put.hist|ory list|
|00001290| 2e 20 20 44 65 66 61 75 | 6c 74 20 69 73 20 74 6f |. Defau|lt is to|
|000012a0| 20 73 61 76 65 20 61 6e | 79 74 68 69 6e 67 20 74 | save an|ything t|
|000012b0| 68 61 74 20 69 73 6e 27 | 74 20 61 6c 6c 20 77 68 |hat isn'|t all wh|
|000012c0| 69 74 65 73 70 61 63 65 | 2e 22 29 0a 28 64 65 66 |itespace|.").(def|
|000012d0| 76 61 72 20 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |var comi|nt-input|
|000012e0| 2d 66 69 6c 74 65 72 2d | 66 75 6e 63 74 69 6f 6e |-filter-|function|
|000012f0| 73 20 6e 69 6c 20 22 5c | 0a 46 75 6e 63 74 69 6f |s nil "\|.Functio|
|00001300| 6e 73 20 74 6f 20 63 61 | 6c 6c 20 62 65 66 6f 72 |ns to ca|ll befor|
|00001310| 65 20 69 6e 70 75 74 20 | 69 73 20 73 65 6e 74 20 |e input |is sent |
|00001320| 74 6f 20 74 68 65 20 70 | 72 6f 63 65 73 73 2e 0a |to the p|rocess..|
|00001330| 54 68 65 73 65 20 66 75 | 6e 63 74 69 6f 6e 73 20 |These fu|nctions |
|00001340| 67 65 74 20 6f 6e 65 20 | 61 72 67 75 6d 65 6e 74 |get one |argument|
|00001350| 2c 20 61 20 73 74 72 69 | 6e 67 20 63 6f 6e 74 61 |, a stri|ng conta|
|00001360| 69 6e 69 6e 67 20 74 68 | 65 20 74 65 78 74 20 74 |ining th|e text t|
|00001370| 6f 20 73 65 6e 64 2e 0a | 0a 54 68 69 73 20 76 61 |o send..|.This va|
|00001380| 72 69 61 62 6c 65 20 69 | 73 20 62 75 66 66 65 72 |riable i|s buffer|
|00001390| 2d 6c 6f 63 61 6c 2e 22 | 29 0a 28 64 65 66 76 61 |-local."|).(defva|
|000013a0| 72 20 63 6f 6d 69 6e 74 | 2d 6f 75 74 70 75 74 2d |r comint|-output-|
|000013b0| 66 69 6c 74 65 72 2d 66 | 75 6e 63 74 69 6f 6e 73 |filter-f|unctions|
|000013c0| 20 28 71 75 6f 74 65 20 | 28 63 6f 6d 69 6e 74 2d | (quote |(comint-|
|000013d0| 70 6f 73 74 6f 75 74 70 | 75 74 2d 73 63 72 6f 6c |postoutp|ut-scrol|
|000013e0| 6c 2d 74 6f 2d 62 6f 74 | 74 6f 6d 29 29 20 22 5c |l-to-bot|tom)) "\|
|000013f0| 0a 46 75 6e 63 74 69 6f | 6e 73 20 74 6f 20 63 61 |.Functio|ns to ca|
|00001400| 6c 6c 20 61 66 74 65 72 | 20 6f 75 74 70 75 74 20 |ll after| output |
|00001410| 69 73 20 69 6e 73 65 72 | 74 65 64 20 69 6e 74 6f |is inser|ted into|
|00001420| 20 74 68 65 20 62 75 66 | 66 65 72 2e 0a 4f 6e 65 | the buf|fer..One|
|00001430| 20 70 6f 73 73 69 62 6c | 65 20 66 75 6e 63 74 69 | possibl|e functi|
|00001440| 6f 6e 20 69 73 20 60 63 | 6f 6d 69 6e 74 2d 70 6f |on is `c|omint-po|
|00001450| 73 74 6f 75 74 70 75 74 | 2d 73 63 72 6f 6c 6c 2d |stoutput|-scroll-|
|00001460| 74 6f 2d 62 6f 74 74 6f | 6d 27 2e 0a 54 68 65 73 |to-botto|m'..Thes|
|00001470| 65 20 66 75 6e 63 74 69 | 6f 6e 73 20 67 65 74 20 |e functi|ons get |
|00001480| 6f 6e 65 20 61 72 67 75 | 6d 65 6e 74 2c 20 61 20 |one argu|ment, a |
|00001490| 73 74 72 69 6e 67 20 63 | 6f 6e 74 61 69 6e 69 6e |string c|ontainin|
|000014a0| 67 20 74 68 65 20 74 65 | 78 74 20 6a 75 73 74 20 |g the te|xt just |
|000014b0| 69 6e 73 65 72 74 65 64 | 2e 0a 0a 54 68 69 73 20 |inserted|...This |
|000014c0| 76 61 72 69 61 62 6c 65 | 20 69 73 20 62 75 66 66 |variable| is buff|
|000014d0| 65 72 2d 6c 6f 63 61 6c | 2e 22 29 0a 28 64 65 66 |er-local|.").(def|
|000014e0| 76 61 72 20 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |var comi|nt-input|
|000014f0| 2d 73 65 6e 64 65 72 20 | 28 71 75 6f 74 65 20 63 |-sender |(quote c|
|00001500| 6f 6d 69 6e 74 2d 73 69 | 6d 70 6c 65 2d 73 65 6e |omint-si|mple-sen|
|00001510| 64 29 20 22 5c 0a 46 75 | 6e 63 74 69 6f 6e 20 74 |d) "\.Fu|nction t|
|00001520| 6f 20 61 63 74 75 61 6c | 6c 79 20 73 65 6e 64 20 |o actual|ly send |
|00001530| 74 6f 20 50 52 4f 43 45 | 53 53 20 74 68 65 20 53 |to PROCE|SS the S|
|00001540| 54 52 49 4e 47 20 73 75 | 62 6d 69 74 74 65 64 20 |TRING su|bmitted |
|00001550| 62 79 20 75 73 65 72 2e | 0a 55 73 75 61 6c 6c 79 |by user.|.Usually|
|00001560| 20 74 68 69 73 20 69 73 | 20 6a 75 73 74 20 60 63 | this is| just `c|
|00001570| 6f 6d 69 6e 74 2d 73 69 | 6d 70 6c 65 2d 73 65 6e |omint-si|mple-sen|
|00001580| 64 27 2c 20 62 75 74 20 | 69 66 20 79 6f 75 72 20 |d', but |if your |
|00001590| 6d 6f 64 65 20 6e 65 65 | 64 73 20 74 6f 20 0a 6d |mode nee|ds to .m|
|000015a0| 61 73 73 61 67 65 20 74 | 68 65 20 69 6e 70 75 74 |assage t|he input|
|000015b0| 20 73 74 72 69 6e 67 2c | 20 70 75 74 20 61 20 64 | string,| put a d|
|000015c0| 69 66 66 65 72 65 6e 74 | 20 66 75 6e 63 74 69 6f |ifferent| functio|
|000015d0| 6e 20 68 65 72 65 2e 0a | 60 63 6f 6d 69 6e 74 2d |n here..|`comint-|
|000015e0| 73 69 6d 70 6c 65 2d 73 | 65 6e 64 27 20 6a 75 73 |simple-s|end' jus|
|000015f0| 74 20 73 65 6e 64 73 20 | 74 68 65 20 73 74 72 69 |t sends |the stri|
|00001600| 6e 67 20 70 6c 75 73 20 | 61 20 6e 65 77 6c 69 6e |ng plus |a newlin|
|00001610| 65 2e 0a 54 68 69 73 20 | 69 73 20 63 61 6c 6c 65 |e..This |is calle|
|00001620| 64 20 66 72 6f 6d 20 74 | 68 65 20 75 73 65 72 20 |d from t|he user |
|00001630| 63 6f 6d 6d 61 6e 64 20 | 60 63 6f 6d 69 6e 74 2d |command |`comint-|
|00001640| 73 65 6e 64 2d 69 6e 70 | 75 74 27 2e 22 29 0a 28 |send-inp|ut'.").(|
|00001650| 64 65 66 76 61 72 20 63 | 6f 6d 69 6e 74 2d 65 6f |defvar c|omint-eo|
|00001660| 6c 2d 6f 6e 2d 73 65 6e | 64 20 74 20 22 5c 0a 2a |l-on-sen|d t "\.*|
|00001670| 4e 6f 6e 2d 6e 69 6c 20 | 6d 65 61 6e 73 20 67 6f |Non-nil |means go|
|00001680| 20 74 6f 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | to the |end of t|
|00001690| 68 65 20 6c 69 6e 65 20 | 62 65 66 6f 72 65 20 73 |he line |before s|
|000016a0| 65 6e 64 69 6e 67 20 69 | 6e 70 75 74 2e 0a 53 65 |ending i|nput..Se|
|000016b0| 65 20 60 63 6f 6d 69 6e | 74 2d 73 65 6e 64 2d 69 |e `comin|t-send-i|
|000016c0| 6e 70 75 74 27 2e 22 29 | 0a 28 64 65 66 76 61 72 |nput'.")|.(defvar|
|000016d0| 20 63 6f 6d 69 6e 74 2d | 6d 6f 64 65 2d 68 6f 6f | comint-|mode-hoo|
|000016e0| 6b 20 6e 69 6c 20 22 5c | 0a 43 61 6c 6c 65 64 20 |k nil "\|.Called |
|000016f0| 75 70 6f 6e 20 65 6e 74 | 72 79 20 69 6e 74 6f 20 |upon ent|ry into |
|00001700| 63 6f 6d 69 6e 74 2d 6d | 6f 64 65 0a 54 68 69 73 |comint-m|ode.This|
|00001710| 20 69 73 20 72 75 6e 20 | 62 65 66 6f 72 65 20 74 | is run |before t|
|00001720| 68 65 20 70 72 6f 63 65 | 73 73 20 69 73 20 63 72 |he proce|ss is cr|
|00001730| 61 6e 6b 65 64 20 75 70 | 2e 22 29 0a 28 64 65 66 |anked up|.").(def|
|00001740| 76 61 72 20 63 6f 6d 69 | 6e 74 2d 65 78 65 63 2d |var comi|nt-exec-|
|00001750| 68 6f 6f 6b 20 6e 69 6c | 20 22 5c 0a 43 61 6c 6c |hook nil| "\.Call|
|00001760| 65 64 20 65 61 63 68 20 | 74 69 6d 65 20 61 20 70 |ed each |time a p|
|00001770| 72 6f 63 65 73 73 20 69 | 73 20 65 78 65 63 27 64 |rocess i|s exec'd|
|00001780| 20 62 79 20 60 63 6f 6d | 69 6e 74 2d 65 78 65 63 | by `com|int-exec|
|00001790| 27 2e 0a 54 68 69 73 20 | 69 73 20 63 61 6c 6c 65 |'..This |is calle|
|000017a0| 64 20 61 66 74 65 72 20 | 74 68 65 20 70 72 6f 63 |d after |the proc|
|000017b0| 65 73 73 20 69 73 20 63 | 72 61 6e 6b 65 64 20 75 |ess is c|ranked u|
|000017c0| 70 2e 20 20 49 74 20 69 | 73 20 75 73 65 66 75 6c |p. It i|s useful|
|000017d0| 20 66 6f 72 20 74 68 69 | 6e 67 73 20 74 68 61 74 | for thi|ngs that|
|000017e0| 0a 6d 75 73 74 20 62 65 | 20 64 6f 6e 65 20 65 61 |.must be| done ea|
|000017f0| 63 68 20 74 69 6d 65 20 | 61 20 70 72 6f 63 65 73 |ch time |a proces|
|00001800| 73 20 69 73 20 65 78 65 | 63 75 74 65 64 20 69 6e |s is exe|cuted in|
|00001810| 20 61 20 63 6f 6d 69 6e | 74 20 6d 6f 64 65 20 62 | a comin|t mode b|
|00001820| 75 66 66 65 72 20 28 65 | 2e 67 2e 2c 0a 60 28 70 |uffer (e|.g.,.`(p|
|00001830| 72 6f 63 65 73 73 2d 6b | 69 6c 6c 2d 77 69 74 68 |rocess-k|ill-with|
|00001840| 6f 75 74 2d 71 75 65 72 | 79 29 27 29 2e 20 20 49 |out-quer|y)'). I|
|00001850| 6e 20 63 6f 6e 74 72 61 | 73 74 2c 20 74 68 65 20 |n contra|st, the |
|00001860| 60 63 6f 6d 69 6e 74 2d | 6d 6f 64 65 2d 68 6f 6f |`comint-|mode-hoo|
|00001870| 6b 27 20 69 73 20 6f 6e | 6c 79 0a 65 78 65 63 75 |k' is on|ly.execu|
|00001880| 74 65 64 20 6f 6e 63 65 | 20 77 68 65 6e 20 74 68 |ted once| when th|
|00001890| 65 20 62 75 66 66 65 72 | 20 69 73 20 63 72 65 61 |e buffer| is crea|
|000018a0| 74 65 64 2e 22 29 0a 28 | 62 79 74 65 2d 63 6f 64 |ted.").(|byte-cod|
|000018b0| 65 20 22 c0 c1 21 84 08 | 00 c2 11 c2 87 22 20 5b |e "..!..|....." [|
|000018c0| 62 6f 75 6e 64 70 20 63 | 6f 6d 69 6e 74 2d 6d 6f |boundp c|omint-mo|
|000018d0| 64 65 2d 6d 61 70 20 6e | 69 6c 5d 20 32 29 0a 28 |de-map n|il] 2).(|
|000018e0| 64 65 66 76 61 72 20 63 | 6f 6d 69 6e 74 2d 70 74 |defvar c|omint-pt|
|000018f0| 79 70 20 74 20 22 5c 0a | 4e 6f 6e 2d 6e 69 6c 20 |yp t "\.|Non-nil |
|00001900| 69 66 20 63 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |if commu|nication|
|00001910| 73 20 76 69 61 20 70 74 | 79 3b 20 66 61 6c 73 65 |s via pt|y; false|
|00001920| 20 69 66 20 62 79 20 70 | 69 70 65 2e 20 20 42 75 | if by p|ipe. Bu|
|00001930| 66 66 65 72 20 6c 6f 63 | 61 6c 2e 0a 54 68 69 73 |ffer loc|al..This|
|00001940| 20 69 73 20 74 6f 20 77 | 6f 72 6b 20 61 72 6f 75 | is to w|ork arou|
|00001950| 6e 64 20 61 20 62 75 67 | 20 69 6e 20 45 6d 61 63 |nd a bug| in Emac|
|00001960| 73 20 70 72 6f 63 65 73 | 73 20 73 69 67 6e 61 6c |s proces|s signal|
|00001970| 6c 69 6e 67 2e 22 29 0a | 28 62 79 74 65 2d 63 6f |ling.").|(byte-co|
|00001980| 64 65 20 22 c0 c1 21 84 | 08 00 c2 11 c2 87 22 20 |de "..!.|......" |
|00001990| 5b 62 6f 75 6e 64 70 20 | 63 6f 6d 69 6e 74 2d 69 |[boundp |comint-i|
|000019a0| 6e 70 75 74 2d 72 69 6e | 67 20 6e 69 6c 5d 20 32 |nput-rin|g nil] 2|
|000019b0| 29 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |).(defva|r comint|
|000019c0| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 2d 69 6e 64 65 |-input-r|ing-inde|
|000019d0| 78 20 6e 69 6c 20 22 5c | 0a 49 6e 64 65 78 20 6f |x nil "\|.Index o|
|000019e0| 66 20 6c 61 73 74 20 6d | 61 74 63 68 65 64 20 68 |f last m|atched h|
|000019f0| 69 73 74 6f 72 79 20 65 | 6c 65 6d 65 6e 74 2e 22 |istory e|lement."|
|00001a00| 29 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |).(defva|r comint|
|00001a10| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 2d |-matchin|g-input-|
|00001a20| 66 72 6f 6d 2d 69 6e 70 | 75 74 2d 73 74 72 69 6e |from-inp|ut-strin|
|00001a30| 67 20 22 22 20 22 5c 0a | 49 6e 70 75 74 20 70 72 |g "" "\.|Input pr|
|00001a40| 65 76 69 6f 75 73 6c 79 | 20 75 73 65 64 20 74 6f |eviously| used to|
|00001a50| 20 6d 61 74 63 68 20 69 | 6e 70 75 74 20 68 69 73 | match i|nput his|
|00001a60| 74 6f 72 79 2e 22 29 0a | 28 62 79 74 65 2d 63 6f |tory.").|(byte-co|
|00001a70| 64 65 20 22 c0 c1 c2 c3 | 23 88 c0 c4 c5 c6 23 88 |de "....|#.....#.|
|00001a80| c0 c7 c5 c6 23 88 c0 c3 | c5 c6 23 88 c0 c8 c5 c6 |....#...|..#.....|
|00001a90| 23 88 c0 c9 c5 c6 23 88 | c0 ca c5 c6 23 88 c0 cb |#.....#.|....#...|
|00001aa0| c5 c6 23 88 c0 cc c5 c6 | 23 88 c0 cd c5 c6 23 87 |..#.....|#.....#.|
|00001ab0| 22 20 5b 70 75 74 20 63 | 6f 6d 69 6e 74 2d 72 65 |" [put c|omint-re|
|00001ac0| 70 6c 61 63 65 2d 62 79 | 2d 65 78 70 61 6e 64 65 |place-by|-expande|
|00001ad0| 64 2d 68 69 73 74 6f 72 | 79 20 6d 65 6e 75 2d 65 |d-histor|y menu-e|
|00001ae0| 6e 61 62 6c 65 20 63 6f | 6d 69 6e 74 2d 69 6e 70 |nable co|mint-inp|
|00001af0| 75 74 2d 61 75 74 6f 65 | 78 70 61 6e 64 20 63 6f |ut-autoe|xpand co|
|00001b00| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 72 69 6e 67 20 |mint-inp|ut-ring |
|00001b10| 70 65 72 6d 61 6e 65 6e | 74 2d 6c 6f 63 61 6c 20 |permanen|t-local |
|00001b20| 74 20 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 72 |t comint|-input-r|
|00001b30| 69 6e 67 2d 69 6e 64 65 | 78 20 63 6f 6d 69 6e 74 |ing-inde|x comint|
|00001b40| 2d 69 6e 70 75 74 2d 66 | 69 6c 74 65 72 2d 66 75 |-input-f|ilter-fu|
|00001b50| 6e 63 74 69 6f 6e 73 20 | 63 6f 6d 69 6e 74 2d 6f |nctions |comint-o|
|00001b60| 75 74 70 75 74 2d 66 69 | 6c 74 65 72 2d 66 75 6e |utput-fi|lter-fun|
|00001b70| 63 74 69 6f 6e 73 20 63 | 6f 6d 69 6e 74 2d 73 63 |ctions c|omint-sc|
|00001b80| 72 6f 6c 6c 2d 74 6f 2d | 62 6f 74 74 6f 6d 2d 6f |roll-to-|bottom-o|
|00001b90| 6e 2d 69 6e 70 75 74 20 | 63 6f 6d 69 6e 74 2d 73 |n-input |comint-s|
|00001ba0| 63 72 6f 6c 6c 2d 74 6f | 2d 62 6f 74 74 6f 6d 2d |croll-to|-bottom-|
|00001bb0| 6f 6e 2d 6f 75 74 70 75 | 74 20 63 6f 6d 69 6e 74 |on-outpu|t comint|
|00001bc0| 2d 73 63 72 6f 6c 6c 2d | 73 68 6f 77 2d 6d 61 78 |-scroll-|show-max|
|00001bd0| 69 6d 75 6d 2d 6f 75 74 | 70 75 74 20 63 6f 6d 69 |imum-out|put comi|
|00001be0| 6e 74 2d 70 74 79 70 5d | 20 34 29 0a 28 64 65 66 |nt-ptyp]| 4).(def|
|00001bf0| 61 6c 69 61 73 20 27 63 | 6f 6d 69 6e 74 2d 6d 6f |alias 'c|omint-mo|
|00001c00| 64 65 20 23 5b 6e 69 6c | 20 22 c0 20 88 c1 12 c3 |de #[nil| ". ....|
|00001c10| 14 c5 16 06 c7 0e 08 21 | 88 c9 ca 21 88 cb 20 89 |.......!|...!.. .|
|00001c20| 16 5c 6e 65 cc 93 88 c9 | cd 21 88 cb 20 89 16 0d |.\ne....|.!.. ...|
|00001c30| 65 cc 93 88 c9 ce 21 88 | cb 20 16 0e c9 cf 21 88 |e.....!.|. ....!.|
|00001c40| c9 d0 21 88 c9 d1 21 88 | c9 d2 21 88 d3 d1 21 83 |..!...!.|..!...!.|
|00001c50| 4c 00 0e 11 84 52 00 d4 | 0e 10 21 16 11 c9 d5 21 |L....R..|..!....!|
|00001c60| 88 d3 d5 21 83 61 00 0e | 15 84 64 00 cc 16 15 c9 |...!.a..|..d.....|
|00001c70| d6 21 88 c9 d7 21 88 c9 | d8 21 88 c9 d9 21 88 c9 |.!...!..|.!...!..|
|00001c80| da 21 88 c9 db 21 88 c9 | dc 21 88 c9 dd 21 88 c9 |.!...!..|.!...!..|
|00001c90| de 21 88 c9 df 21 88 c9 | e0 21 88 c9 e1 21 88 c9 |.!...!..|.!...!..|
|00001ca0| e2 21 88 c9 e3 21 88 c9 | e4 21 88 e5 e4 e6 5c 22 |.!...!..|.!....\"|
|00001cb0| 88 c9 e7 21 88 c9 e8 21 | 88 c9 e9 21 88 c9 ea 21 |...!...!|...!...!|
|00001cc0| 88 eb ec 21 87 22 20 5b | 6b 69 6c 6c 2d 61 6c 6c |...!." [|kill-all|
|00001cd0| 2d 6c 6f 63 61 6c 2d 76 | 61 72 69 61 62 6c 65 73 |-local-v|ariables|
|00001ce0| 20 63 6f 6d 69 6e 74 2d | 6d 6f 64 65 20 6d 61 6a | comint-|mode maj|
|00001cf0| 6f 72 2d 6d 6f 64 65 20 | 22 43 6f 6d 69 6e 74 22 |or-mode |"Comint"|
|00001d00| 20 6d 6f 64 65 2d 6e 61 | 6d 65 20 28 22 3a 25 73 | mode-na|me (":%s|
|00001d10| 22 29 20 6d 6f 64 65 2d | 6c 69 6e 65 2d 70 72 6f |") mode-|line-pro|
|00001d20| 63 65 73 73 20 75 73 65 | 2d 6c 6f 63 61 6c 2d 6d |cess use|-local-m|
|00001d30| 61 70 20 63 6f 6d 69 6e | 74 2d 6d 6f 64 65 2d 6d |ap comin|t-mode-m|
|00001d40| 61 70 20 6d 61 6b 65 2d | 6c 6f 63 61 6c 2d 76 61 |ap make-|local-va|
|00001d50| 72 69 61 62 6c 65 20 63 | 6f 6d 69 6e 74 2d 6c 61 |riable c|omint-la|
|00001d60| 73 74 2d 69 6e 70 75 74 | 2d 73 74 61 72 74 20 6d |st-input|-start m|
|00001d70| 61 6b 65 2d 6d 61 72 6b | 65 72 20 6e 69 6c 20 63 |ake-mark|er nil c|
|00001d80| 6f 6d 69 6e 74 2d 6c 61 | 73 74 2d 69 6e 70 75 74 |omint-la|st-input|
|00001d90| 2d 65 6e 64 20 63 6f 6d | 69 6e 74 2d 6c 61 73 74 |-end com|int-last|
|00001da0| 2d 6f 75 74 70 75 74 2d | 73 74 61 72 74 20 63 6f |-output-|start co|
|00001db0| 6d 69 6e 74 2d 70 72 6f | 6d 70 74 2d 72 65 67 65 |mint-pro|mpt-rege|
|00001dc0| 78 70 20 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |xp comin|t-input-|
|00001dd0| 72 69 6e 67 2d 73 69 7a | 65 20 63 6f 6d 69 6e 74 |ring-siz|e comint|
|00001de0| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 20 63 6f 6d 69 |-input-r|ing comi|
|00001df0| 6e 74 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 66 69 |nt-input|-ring-fi|
|00001e00| 6c 65 2d 6e 61 6d 65 20 | 62 6f 75 6e 64 70 20 6d |le-name |boundp m|
|00001e10| 61 6b 65 2d 72 69 6e 67 | 20 63 6f 6d 69 6e 74 2d |ake-ring| comint-|
|00001e20| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 69 6e 64 65 78 |input-ri|ng-index|
|00001e30| 20 63 6f 6d 69 6e 74 2d | 6d 61 74 63 68 69 6e 67 | comint-|matching|
|00001e40| 2d 69 6e 70 75 74 2d 66 | 72 6f 6d 2d 69 6e 70 75 |-input-f|rom-inpu|
|00001e50| 74 2d 73 74 72 69 6e 67 | 20 63 6f 6d 69 6e 74 2d |t-string| comint-|
|00001e60| 69 6e 70 75 74 2d 61 75 | 74 6f 65 78 70 61 6e 64 |input-au|toexpand|
|00001e70| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 69 67 | comint-|input-ig|
|00001e80| 6e 6f 72 65 64 75 70 73 | 20 63 6f 6d 69 6e 74 2d |noredups| comint-|
|00001e90| 64 65 6c 69 6d 69 74 65 | 72 2d 61 72 67 75 6d 65 |delimite|r-argume|
|00001ea0| 6e 74 2d 6c 69 73 74 20 | 63 6f 6d 69 6e 74 2d 64 |nt-list |comint-d|
|00001eb0| 79 6e 61 6d 69 63 2d 63 | 6f 6d 70 6c 65 74 65 2d |ynamic-c|omplete-|
|00001ec0| 66 75 6e 63 74 69 6f 6e | 73 20 63 6f 6d 69 6e 74 |function|s comint|
|00001ed0| 2d 63 6f 6d 70 6c 65 74 | 69 6f 6e 2d 66 69 67 6e |-complet|ion-fign|
|00001ee0| 6f 72 65 20 63 6f 6d 69 | 6e 74 2d 67 65 74 2d 6f |ore comi|nt-get-o|
|00001ef0| 6c 64 2d 69 6e 70 75 74 | 20 63 6f 6d 69 6e 74 2d |ld-input| comint-|
|00001f00| 69 6e 70 75 74 2d 66 69 | 6c 74 65 72 2d 66 75 6e |input-fi|lter-fun|
|00001f10| 63 74 69 6f 6e 73 20 63 | 6f 6d 69 6e 74 2d 69 6e |ctions c|omint-in|
|00001f20| 70 75 74 2d 66 69 6c 74 | 65 72 20 63 6f 6d 69 6e |put-filt|er comin|
|00001f30| 74 2d 69 6e 70 75 74 2d | 73 65 6e 64 65 72 20 63 |t-input-|sender c|
|00001f40| 6f 6d 69 6e 74 2d 65 6f | 6c 2d 6f 6e 2d 73 65 6e |omint-eo|l-on-sen|
|00001f50| 64 20 63 6f 6d 69 6e 74 | 2d 73 63 72 6f 6c 6c 2d |d comint|-scroll-|
|00001f60| 74 6f 2d 62 6f 74 74 6f | 6d 2d 6f 6e 2d 69 6e 70 |to-botto|m-on-inp|
|00001f70| 75 74 20 63 6f 6d 69 6e | 74 2d 73 63 72 6f 6c 6c |ut comin|t-scroll|
|00001f80| 2d 74 6f 2d 62 6f 74 74 | 6f 6d 2d 6f 6e 2d 6f 75 |-to-bott|om-on-ou|
|00001f90| 74 70 75 74 20 63 6f 6d | 69 6e 74 2d 73 63 72 6f |tput com|int-scro|
|00001fa0| 6c 6c 2d 73 68 6f 77 2d | 6d 61 78 69 6d 75 6d 2d |ll-show-|maximum-|
|00001fb0| 6f 75 74 70 75 74 20 70 | 72 65 2d 63 6f 6d 6d 61 |output p|re-comma|
|00001fc0| 6e 64 2d 68 6f 6f 6b 20 | 61 64 64 2d 68 6f 6f 6b |nd-hook |add-hook|
|00001fd0| 20 63 6f 6d 69 6e 74 2d | 70 72 65 69 6e 70 75 74 | comint-|preinput|
|00001fe0| 2d 73 63 72 6f 6c 6c 2d | 74 6f 2d 62 6f 74 74 6f |-scroll-|to-botto|
|00001ff0| 6d 20 63 6f 6d 69 6e 74 | 2d 6f 75 74 70 75 74 2d |m comint|-output-|
|00002000| 66 69 6c 74 65 72 2d 66 | 75 6e 63 74 69 6f 6e 73 |filter-f|unctions|
|00002010| 20 63 6f 6d 69 6e 74 2d | 70 74 79 70 20 63 6f 6d | comint-|ptyp com|
|00002020| 69 6e 74 2d 65 78 65 63 | 2d 68 6f 6f 6b 20 63 6f |int-exec|-hook co|
|00002030| 6d 69 6e 74 2d 70 72 6f | 63 65 73 73 2d 65 63 68 |mint-pro|cess-ech|
|00002040| 6f 65 73 20 72 75 6e 2d | 68 6f 6f 6b 73 20 63 6f |oes run-|hooks co|
|00002050| 6d 69 6e 74 2d 6d 6f 64 | 65 2d 68 6f 6f 6b 5d 20 |mint-mod|e-hook] |
|00002060| 34 20 22 5c 0a 4d 61 6a | 6f 72 20 6d 6f 64 65 20 |4 "\.Maj|or mode |
|00002070| 66 6f 72 20 69 6e 74 65 | 72 61 63 74 69 6e 67 20 |for inte|racting |
|00002080| 77 69 74 68 20 61 6e 20 | 69 6e 66 65 72 69 6f 72 |with an |inferior|
|00002090| 20 69 6e 74 65 72 70 72 | 65 74 65 72 2e 0a 49 6e | interpr|eter..In|
|000020a0| 74 65 72 70 72 65 74 65 | 72 20 6e 61 6d 65 20 69 |terprete|r name i|
|000020b0| 73 20 73 61 6d 65 20 61 | 73 20 62 75 66 66 65 72 |s same a|s buffer|
|000020c0| 20 6e 61 6d 65 2c 20 73 | 61 6e 73 20 74 68 65 20 | name, s|ans the |
|000020d0| 61 73 74 65 72 69 73 6b | 73 2e 0a 52 65 74 75 72 |asterisk|s..Retur|
|000020e0| 6e 20 61 74 20 65 6e 64 | 20 6f 66 20 62 75 66 66 |n at end| of buff|
|000020f0| 65 72 20 73 65 6e 64 73 | 20 6c 69 6e 65 20 61 73 |er sends| line as|
|00002100| 20 69 6e 70 75 74 2e 0a | 52 65 74 75 72 6e 20 6e | input..|Return n|
|00002110| 6f 74 20 61 74 20 65 6e | 64 20 63 6f 70 69 65 73 |ot at en|d copies|
|00002120| 20 72 65 73 74 20 6f 66 | 20 6c 69 6e 65 20 74 6f | rest of| line to|
|00002130| 20 65 6e 64 20 61 6e 64 | 20 73 65 6e 64 73 20 69 | end and| sends i|
|00002140| 74 2e 0a 53 65 74 74 69 | 6e 67 20 76 61 72 69 61 |t..Setti|ng varia|
|00002150| 62 6c 65 20 60 63 6f 6d | 69 6e 74 2d 65 6f 6c 2d |ble `com|int-eol-|
|00002160| 6f 6e 2d 73 65 6e 64 27 | 20 6d 65 61 6e 73 20 6a |on-send'| means j|
|00002170| 75 6d 70 20 74 6f 20 74 | 68 65 20 65 6e 64 20 6f |ump to t|he end o|
|00002180| 66 20 74 68 65 20 6c 69 | 6e 65 0a 62 65 66 6f 72 |f the li|ne.befor|
|00002190| 65 20 73 75 62 6d 69 74 | 74 69 6e 67 20 6e 65 77 |e submit|ting new|
|000021a0| 20 69 6e 70 75 74 2e 0a | 0a 54 68 69 73 20 6d 6f | input..|.This mo|
|000021b0| 64 65 20 69 73 20 63 75 | 73 74 6f 6d 69 73 65 64 |de is cu|stomised|
|000021c0| 20 74 6f 20 63 72 65 61 | 74 65 20 6d 61 6a 6f 72 | to crea|te major|
|000021d0| 20 6d 6f 64 65 73 20 73 | 75 63 68 20 61 73 20 49 | modes s|uch as I|
|000021e0| 6e 66 65 72 69 6f 72 20 | 4c 69 73 70 0a 6d 6f 64 |nferior |Lisp.mod|
|000021f0| 65 2c 20 53 68 65 6c 6c | 20 6d 6f 64 65 2c 20 65 |e, Shell| mode, e|
|00002200| 74 63 2e 20 20 54 68 69 | 73 20 63 61 6e 20 62 65 |tc. Thi|s can be|
|00002210| 20 64 6f 6e 65 20 62 79 | 20 73 65 74 74 69 6e 67 | done by| setting|
|00002220| 20 74 68 65 20 68 6f 6f | 6b 73 0a 60 63 6f 6d 69 | the hoo|ks.`comi|
|00002230| 6e 74 2d 69 6e 70 75 74 | 2d 66 69 6c 74 65 72 2d |nt-input|-filter-|
|00002240| 66 75 6e 63 74 69 6f 6e | 73 27 2c 20 60 63 6f 6d |function|s', `com|
|00002250| 69 6e 74 2d 69 6e 70 75 | 74 2d 66 69 6c 74 65 72 |int-inpu|t-filter|
|00002260| 27 2c 20 60 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |', `comi|nt-input|
|00002270| 2d 73 65 6e 64 65 72 27 | 0a 61 6e 64 20 60 63 6f |-sender'|.and `co|
|00002280| 6d 69 6e 74 2d 67 65 74 | 2d 6f 6c 64 2d 69 6e 70 |mint-get|-old-inp|
|00002290| 75 74 27 20 74 6f 20 61 | 70 70 72 6f 70 72 69 61 |ut' to a|ppropria|
|000022a0| 74 65 20 66 75 6e 63 74 | 69 6f 6e 73 2c 20 61 6e |te funct|ions, an|
|000022b0| 64 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 0a 60 |d the va|riable.`|
|000022c0| 63 6f 6d 69 6e 74 2d 70 | 72 6f 6d 70 74 2d 72 65 |comint-p|rompt-re|
|000022d0| 67 65 78 70 27 20 74 6f | 20 74 68 65 20 61 70 70 |gexp' to| the app|
|000022e0| 72 6f 70 72 69 61 74 65 | 20 72 65 67 75 6c 61 72 |ropriate| regular|
|000022f0| 20 65 78 70 72 65 73 73 | 69 6f 6e 2e 0a 0a 41 6e | express|ion...An|
|00002300| 20 69 6e 70 75 74 20 68 | 69 73 74 6f 72 79 20 69 | input h|istory i|
|00002310| 73 20 6d 61 69 6e 74 61 | 69 6e 65 64 20 6f 66 20 |s mainta|ined of |
|00002320| 73 69 7a 65 20 60 63 6f | 6d 69 6e 74 2d 69 6e 70 |size `co|mint-inp|
|00002330| 75 74 2d 72 69 6e 67 2d | 73 69 7a 65 27 2c 20 61 |ut-ring-|size', a|
|00002340| 6e 64 0a 63 61 6e 20 62 | 65 20 61 63 63 65 73 73 |nd.can b|e access|
|00002350| 65 64 20 77 69 74 68 20 | 74 68 65 20 63 6f 6d 6d |ed with |the comm|
|00002360| 61 6e 64 73 20 5c 5c 5b | 63 6f 6d 69 6e 74 2d 6e |ands \\[|comint-n|
|00002370| 65 78 74 2d 69 6e 70 75 | 74 5d 2c 20 5c 5c 5b 63 |ext-inpu|t], \\[c|
|00002380| 6f 6d 69 6e 74 2d 70 72 | 65 76 69 6f 75 73 2d 69 |omint-pr|evious-i|
|00002390| 6e 70 75 74 5d 2c 20 61 | 6e 64 20 5c 5c 5b 63 6f |nput], a|nd \\[co|
|000023a0| 6d 69 6e 74 2d 64 79 6e | 61 6d 69 63 2d 6c 69 73 |mint-dyn|amic-lis|
|000023b0| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 5d 2e 0a 49 |t-input-|ring]..I|
|000023c0| 6e 70 75 74 20 72 69 6e | 67 20 68 69 73 74 6f 72 |nput rin|g histor|
|000023d0| 79 20 65 78 70 61 6e 73 | 69 6f 6e 20 63 61 6e 20 |y expans|ion can |
|000023e0| 62 65 20 61 63 68 69 65 | 76 65 64 20 77 69 74 68 |be achie|ved with|
|000023f0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 73 0a 5c 5c | the com|mands.\\|
|00002400| 5b 63 6f 6d 69 6e 74 2d | 72 65 70 6c 61 63 65 2d |[comint-|replace-|
|00002410| 62 79 2d 65 78 70 61 6e | 64 65 64 2d 68 69 73 74 |by-expan|ded-hist|
|00002420| 6f 72 79 5d 20 6f 72 20 | 5c 5c 5b 63 6f 6d 69 6e |ory] or |\\[comin|
|00002430| 74 2d 6d 61 67 69 63 2d | 73 70 61 63 65 5d 2e 0a |t-magic-|space]..|
|00002440| 49 6e 70 75 74 20 72 69 | 6e 67 20 65 78 70 61 6e |Input ri|ng expan|
|00002450| 73 69 6f 6e 20 69 73 20 | 63 6f 6e 74 72 6f 6c 6c |sion is |controll|
|00002460| 65 64 20 62 79 20 74 68 | 65 20 76 61 72 69 61 62 |ed by th|e variab|
|00002470| 6c 65 20 60 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |le `comi|nt-input|
|00002480| 2d 61 75 74 6f 65 78 70 | 61 6e 64 27 2c 0a 61 6e |-autoexp|and',.an|
|00002490| 64 20 61 64 64 69 74 69 | 6f 6e 20 69 73 20 63 6f |d additi|on is co|
|000024a0| 6e 74 72 6f 6c 6c 65 64 | 20 62 79 20 74 68 65 20 |ntrolled| by the |
|000024b0| 76 61 72 69 61 62 6c 65 | 20 60 63 6f 6d 69 6e 74 |variable| `comint|
|000024c0| 2d 69 6e 70 75 74 2d 69 | 67 6e 6f 72 65 64 75 70 |-input-i|gnoredup|
|000024d0| 73 27 2e 0a 0a 43 6f 6d | 6d 61 6e 64 73 20 77 69 |s'...Com|mands wi|
|000024e0| 74 68 20 6e 6f 20 64 65 | 66 61 75 6c 74 20 6b 65 |th no de|fault ke|
|000024f0| 79 20 62 69 6e 64 69 6e | 67 73 20 69 6e 63 6c 75 |y bindin|gs inclu|
|00002500| 64 65 20 60 73 65 6e 64 | 2d 69 6e 76 69 73 69 62 |de `send|-invisib|
|00002510| 6c 65 27 2c 0a 60 63 6f | 6d 69 6e 74 2d 64 79 6e |le',.`co|mint-dyn|
|00002520| 61 6d 69 63 2d 63 6f 6d | 70 6c 65 74 65 27 2c 20 |amic-com|plete', |
|00002530| 60 63 6f 6d 69 6e 74 2d | 64 79 6e 61 6d 69 63 2d |`comint-|dynamic-|
|00002540| 6c 69 73 74 2d 66 69 6c | 65 6e 61 6d 65 2d 63 6f |list-fil|ename-co|
|00002550| 6d 70 6c 65 74 69 6f 6e | 73 27 2c 20 61 6e 64 20 |mpletion|s', and |
|00002560| 0a 60 63 6f 6d 69 6e 74 | 2d 6d 61 67 69 63 2d 73 |.`comint|-magic-s|
|00002570| 70 61 63 65 27 2e 0a 0a | 49 6e 70 75 74 20 74 6f |pace'...|Input to|
|00002580| 2c 20 61 6e 64 20 6f 75 | 74 70 75 74 20 66 72 6f |, and ou|tput fro|
|00002590| 6d 2c 20 74 68 65 20 73 | 75 62 70 72 6f 63 65 73 |m, the s|ubproces|
|000025a0| 73 20 63 61 6e 20 63 61 | 75 73 65 20 74 68 65 20 |s can ca|use the |
|000025b0| 77 69 6e 64 6f 77 20 74 | 6f 20 73 63 72 6f 6c 6c |window t|o scroll|
|000025c0| 20 74 6f 0a 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | to.the |end of t|
|000025d0| 68 65 20 62 75 66 66 65 | 72 2e 20 20 53 65 65 20 |he buffe|r. See |
|000025e0| 76 61 72 69 61 62 6c 65 | 73 20 60 63 6f 6d 69 6e |variable|s `comin|
|000025f0| 74 2d 6f 75 74 70 75 74 | 2d 66 69 6c 74 65 72 2d |t-output|-filter-|
|00002600| 66 75 6e 63 74 69 6f 6e | 73 27 2c 0a 60 63 6f 6d |function|s',.`com|
|00002610| 69 6e 74 2d 73 63 72 6f | 6c 6c 2d 74 6f 2d 62 6f |int-scro|ll-to-bo|
|00002620| 74 74 6f 6d 2d 6f 6e 2d | 69 6e 70 75 74 27 2c 20 |ttom-on-|input', |
|00002630| 61 6e 64 20 60 63 6f 6d | 69 6e 74 2d 73 63 72 6f |and `com|int-scro|
|00002640| 6c 6c 2d 74 6f 2d 62 6f | 74 74 6f 6d 2d 6f 6e 2d |ll-to-bo|ttom-on-|
|00002650| 6f 75 74 70 75 74 27 2e | 0a 0a 49 66 20 79 6f 75 |output'.|..If you|
|00002660| 20 61 63 63 69 64 65 6e | 74 61 6c 6c 79 20 73 75 | acciden|tally su|
|00002670| 73 70 65 6e 64 20 79 6f | 75 72 20 70 72 6f 63 65 |spend yo|ur proce|
|00002680| 73 73 2c 20 75 73 65 20 | 5c 5c 5b 63 6f 6d 69 6e |ss, use |\\[comin|
|00002690| 74 2d 63 6f 6e 74 69 6e | 75 65 2d 73 75 62 6a 6f |t-contin|ue-subjo|
|000026a0| 62 5d 0a 74 6f 20 63 6f | 6e 74 69 6e 75 65 20 69 |b].to co|ntinue i|
|000026b0| 74 2e 0a 0a 5c 5c 7b 63 | 6f 6d 69 6e 74 2d 6d 6f |t...\\{c|omint-mo|
|000026c0| 64 65 2d 6d 61 70 7d 0a | 0a 45 6e 74 72 79 20 74 |de-map}.|.Entry t|
|000026d0| 6f 20 74 68 69 73 20 6d | 6f 64 65 20 72 75 6e 73 |o this m|ode runs|
|000026e0| 20 74 68 65 20 68 6f 6f | 6b 73 20 6f 6e 20 60 63 | the hoo|ks on `c|
|000026f0| 6f 6d 69 6e 74 2d 6d 6f | 64 65 2d 68 6f 6f 6b 27 |omint-mo|de-hook'|
|00002700| 2e 22 20 6e 69 6c 5d 29 | 0a 28 62 79 74 65 2d 63 |." nil])|.(byte-c|
|00002710| 6f 64 65 20 22 08 84 b6 | 01 c1 20 10 c2 08 c3 c4 |ode "...|.. .....|
|00002720| 23 88 c2 08 c5 c6 23 88 | c2 08 c7 c8 23 88 c2 08 |#.....#.|....#...|
|00002730| c9 ca 23 88 c2 08 cb cc | 23 88 c2 08 cd ce 23 88 |..#.....|#.....#.|
|00002740| c2 08 cf d0 23 88 c2 08 | d1 d2 23 88 c2 08 d3 d4 |....#...|..#.....|
|00002750| 23 88 c2 08 d5 d6 23 88 | c2 08 d7 d8 23 88 c2 08 |#.....#.|....#...|
|00002760| d9 da 23 88 c2 08 db dc | 23 88 c2 08 dd de 23 88 |..#.....|#.....#.|
|00002770| c2 08 df e0 23 88 c2 08 | e1 e2 23 88 c2 08 e3 e4 |....#...|..#.....|
|00002780| 23 88 c2 08 e5 d0 23 88 | c2 08 e6 e7 23 88 c2 08 |#.....#.|....#...|
|00002790| e8 e9 23 88 c2 08 ea eb | 23 88 c2 08 ec ed 23 88 |..#.....|#.....#.|
|000027a0| c2 08 ee ef 23 88 c2 08 | f0 f1 c1 f1 21 42 23 88 |....#...|....!B#.|
|000027b0| c2 08 f2 f3 23 88 c2 08 | f4 f5 23 88 c2 08 f6 f7 |....#...|..#.....|
|000027c0| 23 88 c2 08 f8 f9 23 88 | c2 08 fa fb c1 fb 21 42 |#.....#.|......!B|
|000027d0| 23 88 c2 08 fc fd 23 88 | c2 08 fe ff 23 88 c2 08 |#.....#.|....#...|
|000027e0| 81 40 00 81 41 00 23 88 | c2 08 81 42 00 81 43 00 |.@..A.#.|...B..C.|
|000027f0| 23 88 c2 08 81 44 00 81 | 45 00 23 88 c2 08 81 46 |#....D..|E.#....F|
|00002800| 00 81 47 00 23 88 c2 08 | 81 48 00 81 49 00 23 88 |..G.#...|.H..I.#.|
|00002810| c2 08 81 4a 00 81 4b 00 | 23 88 c2 08 81 4c 00 81 |...J..K.|#....L..|
|00002820| 4d 00 23 88 c2 08 81 4e | 00 81 4f 00 23 88 c2 08 |M.#....N|..O.#...|
|00002830| 81 50 00 81 51 00 23 88 | c2 08 81 52 00 81 53 00 |.P..Q.#.|...R..S.|
|00002840| 23 88 c2 08 81 54 00 81 | 55 00 23 88 c2 08 81 56 |#....T..|U.#....V|
|00002850| 00 81 57 00 23 88 c2 08 | 81 58 00 81 59 00 23 88 |..W.#...|.X..Y.#.|
|00002860| c2 08 81 5a 00 81 5b 00 | 23 88 c2 08 81 5c 5c 00 |...Z..[.|#....\\.|
|00002870| 81 5d 00 23 88 c2 08 81 | 5e 00 81 5f 00 c1 81 5f |.].#....|^.._..._|
|00002880| 00 21 42 23 88 c2 08 81 | 60 00 81 61 00 23 88 c2 |.!B#....|`..a.#..|
|00002890| 08 81 62 00 81 63 00 23 | 88 c2 08 81 64 00 81 65 |..b..c.#|....d..e|
|000028a0| 00 23 88 c2 08 81 66 00 | 81 67 00 23 88 c2 08 81 |.#....f.|.g.#....|
|000028b0| 68 00 81 69 00 23 88 c2 | 08 81 6a 00 81 6b 00 23 |h..i.#..|..j..k.#|
|000028c0| 88 81 6c 00 81 6d 00 0e | 6e 5c 22 16 6e c1 87 22 |..l..m..|n\".n.."|
|000028d0| 20 5b 63 6f 6d 69 6e 74 | 2d 6d 6f 64 65 2d 6d 61 | [comint|-mode-ma|
|000028e0| 70 20 6d 61 6b 65 2d 73 | 70 61 72 73 65 2d 6b 65 |p make-s|parse-ke|
|000028f0| 79 6d 61 70 20 64 65 66 | 69 6e 65 2d 6b 65 79 20 |ymap def|ine-key |
|00002900| 22 1b 70 22 20 63 6f 6d | 69 6e 74 2d 70 72 65 76 |".p" com|int-prev|
|00002910| 69 6f 75 73 2d 69 6e 70 | 75 74 20 22 1b 6e 22 20 |ious-inp|ut ".n" |
|00002920| 63 6f 6d 69 6e 74 2d 6e | 65 78 74 2d 69 6e 70 75 |comint-n|ext-inpu|
|00002930| 74 20 22 1b 72 22 20 63 | 6f 6d 69 6e 74 2d 70 72 |t ".r" c|omint-pr|
|00002940| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|00002950| 69 6e 70 75 74 20 22 1b | 73 22 20 63 6f 6d 69 6e |input ".|s" comin|
|00002960| 74 2d 6e 65 78 74 2d 6d | 61 74 63 68 69 6e 67 2d |t-next-m|atching-|
|00002970| 69 6e 70 75 74 20 5b 2d | 38 31 32 36 33 35 30 5d |input [-|8126350]|
|00002980| 20 63 6f 6d 69 6e 74 2d | 70 72 65 76 69 6f 75 73 | comint-|previous|
|00002990| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 2d |-matchin|g-input-|
|000029a0| 66 72 6f 6d 2d 69 6e 70 | 75 74 20 5b 2d 38 31 32 |from-inp|ut [-812|
|000029b0| 36 33 34 39 5d 20 63 6f | 6d 69 6e 74 2d 6e 65 78 |6349] co|mint-nex|
|000029c0| 74 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |t-matchi|ng-input|
|000029d0| 2d 66 72 6f 6d 2d 69 6e | 70 75 74 20 22 1b 5c 66 |-from-in|put ".\f|
|000029e0| 22 20 63 6f 6d 69 6e 74 | 2d 73 68 6f 77 2d 6f 75 |" comint|-show-ou|
|000029f0| 74 70 75 74 20 22 0d 22 | 20 63 6f 6d 69 6e 74 2d |tput "."| comint-|
|00002a00| 73 65 6e 64 2d 69 6e 70 | 75 74 20 22 04 22 20 63 |send-inp|ut "." c|
|00002a10| 6f 6d 69 6e 74 2d 64 65 | 6c 63 68 61 72 2d 6f 72 |omint-de|lchar-or|
|00002a20| 2d 6d 61 79 62 65 2d 65 | 6f 66 20 22 03 01 22 20 |-maybe-e|of ".." |
|00002a30| 63 6f 6d 69 6e 74 2d 62 | 6f 6c 20 22 03 15 22 20 |comint-b|ol ".." |
|00002a40| 63 6f 6d 69 6e 74 2d 6b | 69 6c 6c 2d 69 6e 70 75 |comint-k|ill-inpu|
|00002a50| 74 20 22 03 17 22 20 62 | 61 63 6b 77 61 72 64 2d |t ".." b|ackward-|
|00002a60| 6b 69 6c 6c 2d 77 6f 72 | 64 20 22 03 03 22 20 63 |kill-wor|d ".." c|
|00002a70| 6f 6d 69 6e 74 2d 69 6e | 74 65 72 72 75 70 74 2d |omint-in|terrupt-|
|00002a80| 73 75 62 6a 6f 62 20 22 | 03 1a 22 20 63 6f 6d 69 |subjob "|.." comi|
|00002a90| 6e 74 2d 73 74 6f 70 2d | 73 75 62 6a 6f 62 20 22 |nt-stop-|subjob "|
|00002aa0| 03 1c 22 20 63 6f 6d 69 | 6e 74 2d 71 75 69 74 2d |.." comi|nt-quit-|
|00002ab0| 73 75 62 6a 6f 62 20 22 | 03 0d 22 20 63 6f 6d 69 |subjob "|.." comi|
|00002ac0| 6e 74 2d 63 6f 70 79 2d | 6f 6c 64 2d 69 6e 70 75 |nt-copy-|old-inpu|
|00002ad0| 74 20 22 03 0f 22 20 63 | 6f 6d 69 6e 74 2d 6b 69 |t ".." c|omint-ki|
|00002ae0| 6c 6c 2d 6f 75 74 70 75 | 74 20 22 03 12 22 20 22 |ll-outpu|t ".." "|
|00002af0| 03 05 22 20 63 6f 6d 69 | 6e 74 2d 73 68 6f 77 2d |.." comi|nt-show-|
|00002b00| 6d 61 78 69 6d 75 6d 2d | 6f 75 74 70 75 74 20 22 |maximum-|output "|
|00002b10| 03 5c 66 22 20 63 6f 6d | 69 6e 74 2d 64 79 6e 61 |.\f" com|int-dyna|
|00002b20| 6d 69 63 2d 6c 69 73 74 | 2d 69 6e 70 75 74 2d 72 |mic-list|-input-r|
|00002b30| 69 6e 67 20 22 03 0e 22 | 20 63 6f 6d 69 6e 74 2d |ing ".."| comint-|
|00002b40| 6e 65 78 74 2d 70 72 6f | 6d 70 74 20 22 03 10 22 |next-pro|mpt ".."|
|00002b50| 20 63 6f 6d 69 6e 74 2d | 70 72 65 76 69 6f 75 73 | comint-|previous|
|00002b60| 2d 70 72 6f 6d 70 74 20 | 22 03 04 22 20 63 6f 6d |-prompt |".." com|
|00002b70| 69 6e 74 2d 73 65 6e 64 | 2d 65 6f 66 20 5b 6d 65 |int-send|-eof [me|
|00002b80| 6e 75 2d 62 61 72 20 63 | 6f 6d 70 6c 65 74 69 6f |nu-bar c|ompletio|
|00002b90| 6e 5d 20 22 43 6f 6d 70 | 6c 65 74 65 22 20 5b 6d |n] "Comp|lete" [m|
|00002ba0| 65 6e 75 2d 62 61 72 20 | 63 6f 6d 70 6c 65 74 69 |enu-bar |completi|
|00002bb0| 6f 6e 20 63 6f 6d 70 6c | 65 74 65 2d 65 78 70 61 |on compl|ete-expa|
|00002bc0| 6e 64 5d 20 28 22 45 78 | 70 61 6e 64 20 46 69 6c |nd] ("Ex|pand Fil|
|00002bd0| 65 20 4e 61 6d 65 22 20 | 2e 20 63 6f 6d 69 6e 74 |e Name" |. comint|
|00002be0| 2d 72 65 70 6c 61 63 65 | 2d 62 79 2d 65 78 70 61 |-replace|-by-expa|
|00002bf0| 6e 64 65 64 2d 66 69 6c | 65 6e 61 6d 65 29 20 5b |nded-fil|ename) [|
|00002c00| 6d 65 6e 75 2d 62 61 72 | 20 63 6f 6d 70 6c 65 74 |menu-bar| complet|
|00002c10| 69 6f 6e 20 63 6f 6d 70 | 6c 65 74 65 2d 6c 69 73 |ion comp|lete-lis|
|00002c20| 74 69 6e 67 5d 20 28 22 | 46 69 6c 65 20 43 6f 6d |ting] ("|File Com|
|00002c30| 70 6c 65 74 69 6f 6e 20 | 4c 69 73 74 69 6e 67 22 |pletion |Listing"|
|00002c40| 20 2e 20 63 6f 6d 69 6e | 74 2d 64 79 6e 61 6d 69 | . comin|t-dynami|
|00002c50| 63 2d 6c 69 73 74 2d 66 | 69 6c 65 6e 61 6d 65 2d |c-list-f|ilename-|
|00002c60| 63 6f 6d 70 6c 65 74 69 | 6f 6e 73 29 20 5b 6d 65 |completi|ons) [me|
|00002c70| 6e 75 2d 62 61 72 20 63 | 6f 6d 70 6c 65 74 69 6f |nu-bar c|ompletio|
|00002c80| 6e 20 63 6f 6d 70 6c 65 | 74 65 2d 66 69 6c 65 5d |n comple|te-file]|
|00002c90| 20 28 22 43 6f 6d 70 6c | 65 74 65 20 46 69 6c 65 | ("Compl|ete File|
|00002ca0| 20 4e 61 6d 65 22 20 2e | 20 63 6f 6d 69 6e 74 2d | Name" .| comint-|
|00002cb0| 64 79 6e 61 6d 69 63 2d | 63 6f 6d 70 6c 65 74 65 |dynamic-|complete|
|00002cc0| 2d 66 69 6c 65 6e 61 6d | 65 29 20 5b 6d 65 6e 75 |-filenam|e) [menu|
|00002cd0| 2d 62 61 72 20 63 6f 6d | 70 6c 65 74 69 6f 6e 20 |-bar com|pletion |
|00002ce0| 63 6f 6d 70 6c 65 74 65 | 5d 20 28 22 43 6f 6d 70 |complete|] ("Comp|
|00002cf0| 6c 65 74 65 20 42 65 66 | 6f 72 65 20 50 6f 69 6e |lete Bef|ore Poin|
|00002d00| 74 22 20 2e 20 63 6f 6d | 69 6e 74 2d 64 79 6e 61 |t" . com|int-dyna|
|00002d10| 6d 69 63 2d 63 6f 6d 70 | 6c 65 74 65 29 20 5b 6d |mic-comp|lete) [m|
|00002d20| 65 6e 75 2d 62 61 72 20 | 69 6e 6f 75 74 5d 20 22 |enu-bar |inout] "|
|00002d30| 49 6e 2f 4f 75 74 22 20 | 5b 6d 65 6e 75 2d 62 61 |In/Out" |[menu-ba|
|00002d40| 72 20 69 6e 6f 75 74 20 | 6b 69 6c 6c 2d 6f 75 74 |r inout |kill-out|
|00002d50| 70 75 74 5d 20 28 22 4b | 69 6c 6c 20 43 75 72 72 |put] ("K|ill Curr|
|00002d60| 65 6e 74 20 4f 75 74 70 | 75 74 20 47 72 6f 75 70 |ent Outp|ut Group|
|00002d70| 22 20 2e 20 63 6f 6d 69 | 6e 74 2d 6b 69 6c 6c 2d |" . comi|nt-kill-|
|00002d80| 6f 75 74 70 75 74 29 20 | 5b 6d 65 6e 75 2d 62 61 |output) |[menu-ba|
|00002d90| 72 20 69 6e 6f 75 74 20 | 6e 65 78 74 2d 70 72 6f |r inout |next-pro|
|00002da0| 6d 70 74 5d 20 28 22 46 | 6f 72 77 61 72 64 20 4f |mpt] ("F|orward O|
|00002db0| 75 74 70 75 74 20 47 72 | 6f 75 70 22 20 2e 20 63 |utput Gr|oup" . c|
|00002dc0| 6f 6d 69 6e 74 2d 6e 65 | 78 74 2d 70 72 6f 6d 70 |omint-ne|xt-promp|
|00002dd0| 74 29 20 5b 6d 65 6e 75 | 2d 62 61 72 20 69 6e 6f |t) [menu|-bar ino|
|00002de0| 75 74 20 70 72 65 76 69 | 6f 75 73 2d 70 72 6f 6d |ut previ|ous-prom|
|00002df0| 70 74 5d 20 28 22 42 61 | 63 6b 77 61 72 64 20 4f |pt] ("Ba|ckward O|
|00002e00| 75 74 70 75 74 20 47 72 | 6f 75 70 22 20 2e 20 63 |utput Gr|oup" . c|
|00002e10| 6f 6d 69 6e 74 2d 70 72 | 65 76 69 6f 75 73 2d 70 |omint-pr|evious-p|
|00002e20| 72 6f 6d 70 74 29 20 5b | 6d 65 6e 75 2d 62 61 72 |rompt) [|menu-bar|
|00002e30| 20 69 6e 6f 75 74 20 73 | 68 6f 77 2d 6d 61 78 69 | inout s|how-maxi|
|00002e40| 6d 75 6d 2d 6f 75 74 70 | 75 74 5d 20 28 22 53 68 |mum-outp|ut] ("Sh|
|00002e50| 6f 77 20 4d 61 78 69 6d | 75 6d 20 4f 75 74 70 75 |ow Maxim|um Outpu|
|00002e60| 74 22 20 2e 20 63 6f 6d | 69 6e 74 2d 73 68 6f 77 |t" . com|int-show|
|00002e70| 2d 6d 61 78 69 6d 75 6d | 2d 6f 75 74 70 75 74 29 |-maximum|-output)|
|00002e80| 20 5b 6d 65 6e 75 2d 62 | 61 72 20 69 6e 6f 75 74 | [menu-b|ar inout|
|00002e90| 20 73 68 6f 77 2d 6f 75 | 74 70 75 74 5d 20 28 22 | show-ou|tput] ("|
|00002ea0| 53 68 6f 77 20 43 75 72 | 72 65 6e 74 20 4f 75 74 |Show Cur|rent Out|
|00002eb0| 70 75 74 20 47 72 6f 75 | 70 22 20 2e 20 63 6f 6d |put Grou|p" . com|
|00002ec0| 69 6e 74 2d 73 68 6f 77 | 2d 6f 75 74 70 75 74 29 |int-show|-output)|
|00002ed0| 20 5b 6d 65 6e 75 2d 62 | 61 72 20 69 6e 6f 75 74 | [menu-b|ar inout|
|00002ee0| 20 6b 69 6c 6c 2d 69 6e | 70 75 74 5d 20 28 22 4b | kill-in|put] ("K|
|00002ef0| 69 6c 6c 20 43 75 72 72 | 65 6e 74 20 49 6e 70 75 |ill Curr|ent Inpu|
|00002f00| 74 22 20 2e 20 63 6f 6d | 69 6e 74 2d 6b 69 6c 6c |t" . com|int-kill|
|00002f10| 2d 69 6e 70 75 74 29 20 | 5b 6d 65 6e 75 2d 62 61 |-input) |[menu-ba|
|00002f20| 72 20 69 6e 6f 75 74 20 | 63 6f 70 79 2d 69 6e 70 |r inout |copy-inp|
|00002f30| 75 74 5d 20 28 22 43 6f | 70 79 20 4f 6c 64 20 49 |ut] ("Co|py Old I|
|00002f40| 6e 70 75 74 22 20 2e 20 | 63 6f 6d 69 6e 74 2d 63 |nput" . |comint-c|
|00002f50| 6f 70 79 2d 6f 6c 64 2d | 69 6e 70 75 74 29 20 5b |opy-old-|input) [|
|00002f60| 6d 65 6e 75 2d 62 61 72 | 20 69 6e 6f 75 74 20 66 |menu-bar| inout f|
|00002f70| 6f 72 77 61 72 64 2d 6d | 61 74 63 68 69 6e 67 2d |orward-m|atching-|
|00002f80| 68 69 73 74 6f 72 79 5d | 20 28 22 46 6f 72 77 61 |history]| ("Forwa|
|00002f90| 72 64 20 4d 61 74 63 68 | 69 6e 67 20 49 6e 70 75 |rd Match|ing Inpu|
|00002fa0| 74 2e 2e 2e 22 20 2e 20 | 63 6f 6d 69 6e 74 2d 66 |t..." . |comint-f|
|00002fb0| 6f 72 77 61 72 64 2d 6d | 61 74 63 68 69 6e 67 2d |orward-m|atching-|
|00002fc0| 69 6e 70 75 74 29 20 5b | 6d 65 6e 75 2d 62 61 72 |input) [|menu-bar|
|00002fd0| 20 69 6e 6f 75 74 20 62 | 61 63 6b 77 61 72 64 2d | inout b|ackward-|
|00002fe0| 6d 61 74 63 68 69 6e 67 | 2d 68 69 73 74 6f 72 79 |matching|-history|
|00002ff0| 5d 20 28 22 42 61 63 6b | 77 61 72 64 20 4d 61 74 |] ("Back|ward Mat|
|00003000| 63 68 69 6e 67 20 49 6e | 70 75 74 2e 2e 2e 22 20 |ching In|put..." |
|00003010| 2e 20 63 6f 6d 69 6e 74 | 2d 62 61 63 6b 77 61 72 |. comint|-backwar|
|00003020| 64 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |d-matchi|ng-input|
|00003030| 29 20 5b 6d 65 6e 75 2d | 62 61 72 20 69 6e 6f 75 |) [menu-|bar inou|
|00003040| 74 20 6e 65 78 74 2d 6d | 61 74 63 68 69 6e 67 2d |t next-m|atching-|
|00003050| 68 69 73 74 6f 72 79 5d | 20 28 22 4e 65 78 74 20 |history]| ("Next |
|00003060| 4d 61 74 63 68 69 6e 67 | 20 49 6e 70 75 74 2e 2e |Matching| Input..|
|00003070| 2e 22 20 2e 20 63 6f 6d | 69 6e 74 2d 6e 65 78 74 |." . com|int-next|
|00003080| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 29 |-matchin|g-input)|
|00003090| 20 5b 6d 65 6e 75 2d 62 | 61 72 20 69 6e 6f 75 74 | [menu-b|ar inout|
|000030a0| 20 70 72 65 76 69 6f 75 | 73 2d 6d 61 74 63 68 69 | previou|s-matchi|
|000030b0| 6e 67 2d 68 69 73 74 6f | 72 79 5d 20 28 22 50 72 |ng-histo|ry] ("Pr|
|000030c0| 65 76 69 6f 75 73 20 4d | 61 74 63 68 69 6e 67 20 |evious M|atching |
|000030d0| 49 6e 70 75 74 2e 2e 2e | 22 20 2e 20 63 6f 6d 69 |Input...|" . comi|
|000030e0| 6e 74 2d 70 72 65 76 69 | 6f 75 73 2d 6d 61 74 63 |nt-previ|ous-matc|
|000030f0| 68 69 6e 67 2d 69 6e 70 | 75 74 29 20 5b 6d 65 6e |hing-inp|ut) [men|
|00003100| 75 2d 62 61 72 20 69 6e | 6f 75 74 20 6e 65 78 74 |u-bar in|out next|
|00003110| 2d 6d 61 74 63 68 69 6e | 67 2d 68 69 73 74 6f 72 |-matchin|g-histor|
|00003120| 79 2d 66 72 6f 6d 2d 69 | 6e 70 75 74 5d 20 28 22 |y-from-i|nput] ("|
|00003130| 4e 65 78 74 20 4d 61 74 | 63 68 69 6e 67 20 43 75 |Next Mat|ching Cu|
|00003140| 72 72 65 6e 74 20 49 6e | 70 75 74 22 20 2e 20 63 |rrent In|put" . c|
|00003150| 6f 6d 69 6e 74 2d 6e 65 | 78 74 2d 6d 61 74 63 68 |omint-ne|xt-match|
|00003160| 69 6e 67 2d 69 6e 70 75 | 74 2d 66 72 6f 6d 2d 69 |ing-inpu|t-from-i|
|00003170| 6e 70 75 74 29 20 5b 6d | 65 6e 75 2d 62 61 72 20 |nput) [m|enu-bar |
|00003180| 69 6e 6f 75 74 20 70 72 | 65 76 69 6f 75 73 2d 6d |inout pr|evious-m|
|00003190| 61 74 63 68 69 6e 67 2d | 68 69 73 74 6f 72 79 2d |atching-|history-|
|000031a0| 66 72 6f 6d 2d 69 6e 70 | 75 74 5d 20 28 22 50 72 |from-inp|ut] ("Pr|
|000031b0| 65 76 69 6f 75 73 20 4d | 61 74 63 68 69 6e 67 20 |evious M|atching |
|000031c0| 43 75 72 72 65 6e 74 20 | 49 6e 70 75 74 22 20 2e |Current |Input" .|
|000031d0| 20 63 6f 6d 69 6e 74 2d | 70 72 65 76 69 6f 75 73 | comint-|previous|
|000031e0| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 2d |-matchin|g-input-|
|000031f0| 66 72 6f 6d 2d 69 6e 70 | 75 74 29 20 5b 6d 65 6e |from-inp|ut) [men|
|00003200| 75 2d 62 61 72 20 69 6e | 6f 75 74 20 6e 65 78 74 |u-bar in|out next|
|00003210| 2d 68 69 73 74 6f 72 79 | 5d 20 28 22 4e 65 78 74 |-history|] ("Next|
|00003220| 20 49 6e 70 75 74 22 20 | 2e 20 63 6f 6d 69 6e 74 | Input" |. comint|
|00003230| 2d 6e 65 78 74 2d 69 6e | 70 75 74 29 20 5b 6d 65 |-next-in|put) [me|
|00003240| 6e 75 2d 62 61 72 20 69 | 6e 6f 75 74 20 70 72 65 |nu-bar i|nout pre|
|00003250| 76 69 6f 75 73 2d 68 69 | 73 74 6f 72 79 5d 20 28 |vious-hi|story] (|
|00003260| 22 50 72 65 76 69 6f 75 | 73 20 49 6e 70 75 74 22 |"Previou|s Input"|
|00003270| 20 2e 20 63 6f 6d 69 6e | 74 2d 70 72 65 76 69 6f | . comin|t-previo|
|00003280| 75 73 2d 69 6e 70 75 74 | 29 20 5b 6d 65 6e 75 2d |us-input|) [menu-|
|00003290| 62 61 72 20 69 6e 6f 75 | 74 20 6c 69 73 74 2d 68 |bar inou|t list-h|
|000032a0| 69 73 74 6f 72 79 5d 20 | 28 22 4c 69 73 74 20 49 |istory] |("List I|
|000032b0| 6e 70 75 74 20 48 69 73 | 74 6f 72 79 22 20 2e 20 |nput His|tory" . |
|000032c0| 63 6f 6d 69 6e 74 2d 64 | 79 6e 61 6d 69 63 2d 6c |comint-d|ynamic-l|
|000032d0| 69 73 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 29 20 |ist-inpu|t-ring) |
|000032e0| 5b 6d 65 6e 75 2d 62 61 | 72 20 69 6e 6f 75 74 20 |[menu-ba|r inout |
|000032f0| 65 78 70 61 6e 64 2d 68 | 69 73 74 6f 72 79 5d 20 |expand-h|istory] |
|00003300| 28 22 45 78 70 61 6e 64 | 20 48 69 73 74 6f 72 79 |("Expand| History|
|00003310| 20 42 65 66 6f 72 65 20 | 50 6f 69 6e 74 22 20 2e | Before |Point" .|
|00003320| 20 63 6f 6d 69 6e 74 2d | 72 65 70 6c 61 63 65 2d | comint-|replace-|
|00003330| 62 79 2d 65 78 70 61 6e | 64 65 64 2d 68 69 73 74 |by-expan|ded-hist|
|00003340| 6f 72 79 29 20 5b 6d 65 | 6e 75 2d 62 61 72 20 73 |ory) [me|nu-bar s|
|00003350| 69 67 6e 61 6c 73 5d 20 | 22 53 69 67 6e 61 6c 73 |ignals] |"Signals|
|00003360| 22 20 5b 6d 65 6e 75 2d | 62 61 72 20 73 69 67 6e |" [menu-|bar sign|
|00003370| 61 6c 73 20 65 6f 66 5d | 20 28 22 45 4f 46 22 20 |als eof]| ("EOF" |
|00003380| 2e 20 63 6f 6d 69 6e 74 | 2d 73 65 6e 64 2d 65 6f |. comint|-send-eo|
|00003390| 66 29 20 5b 6d 65 6e 75 | 2d 62 61 72 20 73 69 67 |f) [menu|-bar sig|
|000033a0| 6e 61 6c 73 20 6b 69 6c | 6c 5d 20 28 22 4b 49 4c |nals kil|l] ("KIL|
|000033b0| 4c 22 20 2e 20 63 6f 6d | 69 6e 74 2d 6b 69 6c 6c |L" . com|int-kill|
|000033c0| 2d 73 75 62 6a 6f 62 29 | 20 5b 6d 65 6e 75 2d 62 |-subjob)| [menu-b|
|000033d0| 61 72 20 73 69 67 6e 61 | 6c 73 20 71 75 69 74 5d |ar signa|ls quit]|
|000033e0| 20 28 22 51 55 49 54 22 | 20 2e 20 63 6f 6d 69 6e | ("QUIT"| . comin|
|000033f0| 74 2d 71 75 69 74 2d 73 | 75 62 6a 6f 62 29 20 5b |t-quit-s|ubjob) [|
|00003400| 6d 65 6e 75 2d 62 61 72 | 20 73 69 67 6e 61 6c 73 |menu-bar| signals|
|00003410| 20 63 6f 6e 74 5d 20 28 | 22 43 4f 4e 54 22 20 2e | cont] (|"CONT" .|
|00003420| 20 63 6f 6d 69 6e 74 2d | 63 6f 6e 74 69 6e 75 65 | comint-|continue|
|00003430| 2d 73 75 62 6a 6f 62 29 | 20 5b 6d 65 6e 75 2d 62 |-subjob)| [menu-b|
|00003440| 61 72 20 73 69 67 6e 61 | 6c 73 20 73 74 6f 70 5d |ar signa|ls stop]|
|00003450| 20 28 22 53 54 4f 50 22 | 20 2e 20 63 6f 6d 69 6e | ("STOP"| . comin|
|00003460| 74 2d 73 74 6f 70 2d 73 | 75 62 6a 6f 62 29 20 5b |t-stop-s|ubjob) [|
|00003470| 6d 65 6e 75 2d 62 61 72 | 20 73 69 67 6e 61 6c 73 |menu-bar| signals|
|00003480| 20 62 72 65 61 6b 5d 20 | 28 22 42 52 45 41 4b 22 | break] |("BREAK"|
|00003490| 20 2e 20 63 6f 6d 69 6e | 74 2d 69 6e 74 65 72 72 | . comin|t-interr|
|000034a0| 75 70 74 2d 73 75 62 6a | 6f 62 29 20 61 70 70 65 |upt-subj|ob) appe|
|000034b0| 6e 64 20 28 63 6f 6d 70 | 6c 65 74 69 6f 6e 20 69 |nd (comp|letion i|
|000034c0| 6e 6f 75 74 20 73 69 67 | 6e 61 6c 73 29 20 6d 65 |nout sig|nals) me|
|000034d0| 6e 75 2d 62 61 72 2d 66 | 69 6e 61 6c 2d 69 74 65 |nu-bar-f|inal-ite|
|000034e0| 6d 73 5d 20 36 29 0a 28 | 64 65 66 61 6c 69 61 73 |ms] 6).(|defalias|
|000034f0| 20 27 63 6f 6d 69 6e 74 | 2d 63 68 65 63 6b 2d 70 | 'comint|-check-p|
|00003500| 72 6f 63 20 23 5b 28 62 | 75 66 66 65 72 29 20 22 |roc #[(b|uffer) "|
|00003510| c0 09 21 89 1a 85 0d 00 | c3 5c 6e 21 c4 3e 29 87 |..!.....|.\n!.>).|
|00003520| 22 20 5b 67 65 74 2d 62 | 75 66 66 65 72 2d 70 72 |" [get-b|uffer-pr|
|00003530| 6f 63 65 73 73 20 62 75 | 66 66 65 72 20 70 72 6f |ocess bu|ffer pro|
|00003540| 63 20 70 72 6f 63 65 73 | 73 2d 73 74 61 74 75 73 |c proces|s-status|
|00003550| 20 28 72 75 6e 20 73 74 | 6f 70 29 5d 20 33 20 22 | (run st|op)] 3 "|
|00003560| 5c 0a 52 65 74 75 72 6e | 20 74 20 69 66 20 74 68 |\.Return| t if th|
|00003570| 65 72 65 20 69 73 20 61 | 20 6c 69 76 69 6e 67 20 |ere is a| living |
|00003580| 70 72 6f 63 65 73 73 20 | 61 73 73 6f 63 69 61 74 |process |associat|
|00003590| 65 64 20 77 2f 62 75 66 | 66 65 72 20 42 55 46 46 |ed w/buf|fer BUFF|
|000035a0| 45 52 2e 0a 4c 69 76 69 | 6e 67 20 6d 65 61 6e 73 |ER..Livi|ng means|
|000035b0| 20 74 68 65 20 73 74 61 | 74 75 73 20 69 73 20 60 | the sta|tus is `|
|000035c0| 72 75 6e 27 20 6f 72 20 | 60 73 74 6f 70 27 2e 0a |run' or |`stop'..|
|000035d0| 42 55 46 46 45 52 20 63 | 61 6e 20 62 65 20 65 69 |BUFFER c|an be ei|
|000035e0| 74 68 65 72 20 61 20 62 | 75 66 66 65 72 20 6f 72 |ther a b|uffer or|
|000035f0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 6f 6e 65 | the nam|e of one|
|00003600| 2e 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |."]).(de|falias '|
|00003610| 6d 61 6b 65 2d 63 6f 6d | 69 6e 74 20 23 5b 28 6e |make-com|int #[(n|
|00003620| 61 6d 65 20 70 72 6f 67 | 72 61 6d 20 26 6f 70 74 |ame prog|ram &opt|
|00003630| 69 6f 6e 61 6c 20 73 74 | 61 72 74 66 69 6c 65 20 |ional st|artfile |
|00003640| 26 72 65 73 74 20 73 77 | 69 74 63 68 65 73 29 20 |&rest sw|itches) |
|00003650| 22 c0 c1 5c 6e c1 51 21 | 1b c4 0b 21 84 20 00 8a |"..\n.Q!|...!. ..|
|00003660| 0b 71 88 c5 20 88 29 c6 | 0b 5c 6e 0e 07 0e 08 0e |.q.. .).|.\n.....|
|00003670| 09 25 88 0b 29 87 22 20 | 5b 67 65 74 2d 62 75 66 |.%..)." |[get-buf|
|00003680| 66 65 72 2d 63 72 65 61 | 74 65 20 22 2a 22 20 6e |fer-crea|te "*" n|
|00003690| 61 6d 65 20 62 75 66 66 | 65 72 20 63 6f 6d 69 6e |ame buff|er comin|
|000036a0| 74 2d 63 68 65 63 6b 2d | 70 72 6f 63 20 63 6f 6d |t-check-|proc com|
|000036b0| 69 6e 74 2d 6d 6f 64 65 | 20 63 6f 6d 69 6e 74 2d |int-mode| comint-|
|000036c0| 65 78 65 63 20 70 72 6f | 67 72 61 6d 20 73 74 61 |exec pro|gram sta|
|000036d0| 72 74 66 69 6c 65 20 73 | 77 69 74 63 68 65 73 5d |rtfile s|witches]|
|000036e0| 20 36 20 22 5c 0a 4d 61 | 6b 65 20 61 20 63 6f 6d | 6 "\.Ma|ke a com|
|000036f0| 69 6e 74 20 70 72 6f 63 | 65 73 73 20 4e 41 4d 45 |int proc|ess NAME|
|00003700| 20 69 6e 20 61 20 62 75 | 66 66 65 72 2c 20 72 75 | in a bu|ffer, ru|
|00003710| 6e 6e 69 6e 67 20 50 52 | 4f 47 52 41 4d 2e 0a 54 |nning PR|OGRAM..T|
|00003720| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 62 |he name |of the b|
|00003730| 75 66 66 65 72 20 69 73 | 20 6d 61 64 65 20 62 79 |uffer is| made by|
|00003740| 20 73 75 72 72 6f 75 6e | 64 69 6e 67 20 4e 41 4d | surroun|ding NAM|
|00003750| 45 20 77 69 74 68 20 60 | 2a 27 73 2e 0a 49 66 20 |E with `|*'s..If |
|00003760| 74 68 65 72 65 20 69 73 | 20 61 6c 72 65 61 64 79 |there is| already|
|00003770| 20 61 20 72 75 6e 6e 69 | 6e 67 20 70 72 6f 63 65 | a runni|ng proce|
|00003780| 73 73 20 69 6e 20 74 68 | 61 74 20 62 75 66 66 65 |ss in th|at buffe|
|00003790| 72 2c 20 69 74 20 69 73 | 20 6e 6f 74 20 72 65 73 |r, it is| not res|
|000037a0| 74 61 72 74 65 64 2e 0a | 4f 70 74 69 6f 6e 61 6c |tarted..|Optional|
|000037b0| 20 74 68 69 72 64 20 61 | 72 67 20 53 54 41 52 54 | third a|rg START|
|000037c0| 46 49 4c 45 20 69 73 20 | 74 68 65 20 6e 61 6d 65 |FILE is |the name|
|000037d0| 20 6f 66 20 61 20 66 69 | 6c 65 20 74 6f 20 73 65 | of a fi|le to se|
|000037e0| 6e 64 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |nd the c|ontents |
|000037f0| 6f 66 20 74 6f 20 0a 74 | 68 65 20 70 72 6f 63 65 |of to .t|he proce|
|00003800| 73 73 2e 20 20 41 6e 79 | 20 6d 6f 72 65 20 61 72 |ss. Any| more ar|
|00003810| 67 73 20 61 72 65 20 61 | 72 67 75 6d 65 6e 74 73 |gs are a|rguments|
|00003820| 20 74 6f 20 50 52 4f 47 | 52 41 4d 2e 22 5d 29 0a | to PROG|RAM."]).|
|00003830| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|00003840| 74 2d 72 75 6e 20 23 5b | 28 70 72 6f 67 72 61 6d |t-run #[|(program|
|00003850| 29 20 22 c0 09 21 1a c3 | c4 5c 6e 09 5c 22 21 88 |) "..!..|.\n.\"!.|
|00003860| c5 c6 c7 5c 6e c8 51 21 | 21 29 87 22 20 5b 66 69 |...\n.Q!|!)." [fi|
|00003870| 6c 65 2d 6e 61 6d 65 2d | 6e 6f 6e 64 69 72 65 63 |le-name-|nondirec|
|00003880| 74 6f 72 79 20 70 72 6f | 67 72 61 6d 20 6e 61 6d |tory pro|gram nam|
|00003890| 65 20 73 77 69 74 63 68 | 2d 74 6f 2d 62 75 66 66 |e switch|-to-buff|
|000038a0| 65 72 20 6d 61 6b 65 2d | 63 6f 6d 69 6e 74 20 72 |er make-|comint r|
|000038b0| 75 6e 2d 68 6f 6f 6b 73 | 20 69 6e 74 65 72 6e 2d |un-hooks| intern-|
|000038c0| 73 6f 66 74 20 22 63 6f | 6d 69 6e 74 2d 22 20 22 |soft "co|mint-" "|
|000038d0| 2d 68 6f 6f 6b 22 5d 20 | 35 20 22 5c 0a 52 75 6e |-hook"] |5 "\.Run|
|000038e0| 20 50 52 4f 47 52 41 4d | 20 69 6e 20 61 20 63 6f | PROGRAM| in a co|
|000038f0| 6d 69 6e 74 20 62 75 66 | 66 65 72 20 61 6e 64 20 |mint buf|fer and |
|00003900| 73 77 69 74 63 68 20 74 | 6f 20 69 74 2e 0a 54 68 |switch t|o it..Th|
|00003910| 65 20 62 75 66 66 65 72 | 20 6e 61 6d 65 20 69 73 |e buffer| name is|
|00003920| 20 6d 61 64 65 20 62 79 | 20 73 75 72 72 6f 75 6e | made by| surroun|
|00003930| 64 69 6e 67 20 74 68 65 | 20 66 69 6c 65 20 6e 61 |ding the| file na|
|00003940| 6d 65 20 6f 66 20 50 52 | 4f 47 52 41 4d 20 77 69 |me of PR|OGRAM wi|
|00003950| 74 68 20 60 2a 27 73 2e | 0a 54 68 65 20 66 69 6c |th `*'s.|.The fil|
|00003960| 65 20 6e 61 6d 65 20 69 | 73 20 75 73 65 64 20 74 |e name i|s used t|
|00003970| 6f 20 6d 61 6b 65 20 61 | 20 73 79 6d 62 6f 6c 20 |o make a| symbol |
|00003980| 6e 61 6d 65 2c 20 73 75 | 63 68 20 61 73 20 60 63 |name, su|ch as `c|
|00003990| 6f 6d 69 6e 74 2d 73 68 | 2d 68 6f 6f 6b 27 2c 20 |omint-sh|-hook', |
|000039a0| 61 6e 64 20 61 6e 79 0a | 68 6f 6f 6b 73 20 6f 6e |and any.|hooks on|
|000039b0| 20 74 68 69 73 20 73 79 | 6d 62 6f 6c 20 61 72 65 | this sy|mbol are|
|000039c0| 20 72 75 6e 20 69 6e 20 | 74 68 65 20 62 75 66 66 | run in |the buff|
|000039d0| 65 72 2e 0a 53 65 65 20 | 60 6d 61 6b 65 2d 63 6f |er..See |`make-co|
|000039e0| 6d 69 6e 74 27 20 61 6e | 64 20 60 63 6f 6d 69 6e |mint' an|d `comin|
|000039f0| 74 2d 65 78 65 63 27 2e | 22 20 22 73 52 75 6e 20 |t-exec'.|" "sRun |
|00003a00| 70 72 6f 67 72 61 6d 3a | 20 22 5d 29 0a 28 64 65 |program:| "]).(de|
|00003a10| 66 61 6c 69 61 73 20 27 | 63 6f 6d 69 6e 74 2d 65 |falias '|comint-e|
|00003a20| 78 65 63 20 23 5b 28 62 | 75 66 66 65 72 20 6e 61 |xec #[(b|uffer na|
|00003a30| 6d 65 20 63 6f 6d 6d 61 | 6e 64 20 73 74 61 72 74 |me comma|nd start|
|00003a40| 66 69 6c 65 20 73 77 69 | 74 63 68 65 73 29 20 22 |file swi|tches) "|
|00003a50| 8a 08 71 88 c1 08 21 89 | 1a 83 10 00 c3 5c 6e 21 |..q...!.|.....\n!|
|00003a60| 88 29 c4 0d 08 0e 06 0e | 07 24 1a c8 5c 6e c9 5c |.)......|.$..\n.\|
|00003a70| 22 88 ca cb 21 88 0e 5c | 66 16 0b 64 62 88 cd 5c |"...!..\|f..db..\|
|00003a80| 6e 21 60 ce 93 88 0e 0f | 83 51 00 d0 d1 21 88 64 |n!`.....|.Q...!.d|
|00003a90| 62 88 d2 0e 0f 21 88 60 | 64 7b 16 0f 60 64 7c 88 |b....!.`|d{..`d|.|
|00003aa0| d3 5c 6e 0e 0f 5c 22 88 | d4 d5 21 88 08 2a 87 22 |.\n..\".|..!..*."|
|00003ab0| 20 5b 62 75 66 66 65 72 | 20 67 65 74 2d 62 75 66 | [buffer| get-buf|
|00003ac0| 66 65 72 2d 70 72 6f 63 | 65 73 73 20 70 72 6f 63 |fer-proc|ess proc|
|00003ad0| 20 64 65 6c 65 74 65 2d | 70 72 6f 63 65 73 73 20 | delete-|process |
|00003ae0| 63 6f 6d 69 6e 74 2d 65 | 78 65 63 2d 31 20 6e 61 |comint-e|xec-1 na|
|00003af0| 6d 65 20 63 6f 6d 6d 61 | 6e 64 20 73 77 69 74 63 |me comma|nd switc|
|00003b00| 68 65 73 20 73 65 74 2d | 70 72 6f 63 65 73 73 2d |hes set-|process-|
|00003b10| 66 69 6c 74 65 72 20 63 | 6f 6d 69 6e 74 2d 6f 75 |filter c|omint-ou|
|00003b20| 74 70 75 74 2d 66 69 6c | 74 65 72 20 6d 61 6b 65 |tput-fil|ter make|
|00003b30| 2d 6c 6f 63 61 6c 2d 76 | 61 72 69 61 62 6c 65 20 |-local-v|ariable |
|00003b40| 63 6f 6d 69 6e 74 2d 70 | 74 79 70 20 70 72 6f 63 |comint-p|typ proc|
|00003b50| 65 73 73 2d 63 6f 6e 6e | 65 63 74 69 6f 6e 2d 74 |ess-conn|ection-t|
|00003b60| 79 70 65 20 70 72 6f 63 | 65 73 73 2d 6d 61 72 6b |ype proc|ess-mark|
|00003b70| 20 6e 69 6c 20 73 74 61 | 72 74 66 69 6c 65 20 73 | nil sta|rtfile s|
|00003b80| 6c 65 65 70 2d 66 6f 72 | 20 31 20 69 6e 73 65 72 |leep-for| 1 inser|
|00003b90| 74 2d 66 69 6c 65 2d 63 | 6f 6e 74 65 6e 74 73 20 |t-file-c|ontents |
|00003ba0| 63 6f 6d 69 6e 74 2d 73 | 65 6e 64 2d 73 74 72 69 |comint-s|end-stri|
|00003bb0| 6e 67 20 72 75 6e 2d 68 | 6f 6f 6b 73 20 63 6f 6d |ng run-h|ooks com|
|00003bc0| 69 6e 74 2d 65 78 65 63 | 2d 68 6f 6f 6b 5d 20 36 |int-exec|-hook] 6|
|00003bd0| 20 22 5c 0a 53 74 61 72 | 74 20 75 70 20 61 20 70 | "\.Star|t up a p|
|00003be0| 72 6f 63 65 73 73 20 69 | 6e 20 62 75 66 66 65 72 |rocess i|n buffer|
|00003bf0| 20 42 55 46 46 45 52 20 | 66 6f 72 20 63 6f 6d 69 | BUFFER |for comi|
|00003c00| 6e 74 20 6d 6f 64 65 73 | 2e 0a 42 6c 61 73 74 73 |nt modes|..Blasts|
|00003c10| 20 61 6e 79 20 6f 6c 64 | 20 70 72 6f 63 65 73 73 | any old| process|
|00003c20| 20 72 75 6e 6e 69 6e 67 | 20 69 6e 20 74 68 65 20 | running| in the |
|00003c30| 62 75 66 66 65 72 2e 20 | 20 44 6f 65 73 6e 27 74 |buffer. | Doesn't|
|00003c40| 20 73 65 74 20 74 68 65 | 20 62 75 66 66 65 72 20 | set the| buffer |
|00003c50| 6d 6f 64 65 2e 0a 59 6f | 75 20 63 61 6e 20 75 73 |mode..Yo|u can us|
|00003c60| 65 20 74 68 69 73 20 74 | 6f 20 63 68 65 61 70 6c |e this t|o cheapl|
|00003c70| 79 20 72 75 6e 20 61 20 | 73 65 72 69 65 73 20 6f |y run a |series o|
|00003c80| 66 20 70 72 6f 63 65 73 | 73 65 73 20 69 6e 20 74 |f proces|ses in t|
|00003c90| 68 65 20 73 61 6d 65 20 | 63 6f 6d 69 6e 74 0a 62 |he same |comint.b|
|00003ca0| 75 66 66 65 72 2e 20 20 | 54 68 65 20 68 6f 6f 6b |uffer. |The hook|
|00003cb0| 20 60 63 6f 6d 69 6e 74 | 2d 65 78 65 63 2d 68 6f | `comint|-exec-ho|
|00003cc0| 6f 6b 27 20 69 73 20 72 | 75 6e 20 61 66 74 65 72 |ok' is r|un after|
|00003cd0| 20 65 61 63 68 20 65 78 | 65 63 2e 22 5d 29 0a 28 | each ex|ec."]).(|
|00003ce0| 64 65 66 61 6c 69 61 73 | 20 28 71 75 6f 74 65 20 |defalias| (quote |
|00003cf0| 63 6f 6d 69 6e 74 2d 65 | 78 65 63 2d 31 29 20 23 |comint-e|xec-1) #|
|00003d00| 5b 28 6e 61 6d 65 20 62 | 75 66 66 65 72 20 63 6f |[(name b|uffer co|
|00003d10| 6d 6d 61 6e 64 20 73 77 | 69 74 63 68 65 73 29 20 |mmand sw|itches) |
|00003d20| 22 c0 c1 21 83 15 00 09 | 83 15 00 c2 c3 c4 c5 c6 |"..!....|........|
|00003d30| 20 5c 22 45 82 1d 00 c2 | c7 c4 c8 c6 20 5c 22 45 | \"E....|.... \"E|
|00003d40| 0e 09 a4 1e 09 ca cb 0e | 5c 66 0e 0d 0e 0e 0e 0f |........|\f......|
|00003d50| 25 29 87 22 20 5b 62 6f | 75 6e 64 70 20 73 79 73 |%)." [bo|undp sys|
|00003d60| 74 65 6d 2d 75 73 65 73 | 2d 74 65 72 6d 69 6e 66 |tem-uses|-terminf|
|00003d70| 6f 20 22 45 4d 41 43 53 | 3d 74 22 20 22 54 45 52 |o "EMACS|=t" "TER|
|00003d80| 4d 3d 75 6e 6b 6e 6f 77 | 6e 22 20 66 6f 72 6d 61 |M=unknow|n" forma|
|00003d90| 74 20 22 43 4f 4c 55 4d | 4e 53 3d 25 64 22 20 66 |t "COLUM|NS=%d" f|
|00003da0| 72 61 6d 65 2d 77 69 64 | 74 68 20 22 54 45 52 4d |rame-wid|th "TERM|
|00003db0| 3d 65 6d 61 63 73 22 20 | 22 54 45 52 4d 43 41 50 |=emacs" |"TERMCAP|
|00003dc0| 3d 65 6d 61 63 73 3a 63 | 6f 23 25 64 3a 74 63 3d |=emacs:c|o#%d:tc=|
|00003dd0| 75 6e 6b 6e 6f 77 6e 22 | 20 70 72 6f 63 65 73 73 |unknown"| process|
|00003de0| 2d 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 61 70 70 |-environ|ment app|
|00003df0| 6c 79 20 73 74 61 72 74 | 2d 70 72 6f 63 65 73 73 |ly start|-process|
|00003e00| 20 6e 61 6d 65 20 62 75 | 66 66 65 72 20 63 6f 6d | name bu|ffer com|
|00003e10| 6d 61 6e 64 20 73 77 69 | 74 63 68 65 73 5d 20 36 |mand swi|tches] 6|
|00003e20| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 63 6f |]).(defa|lias 'co|
|00003e30| 6d 69 6e 74 2d 72 65 61 | 64 2d 69 6e 70 75 74 2d |mint-rea|d-input-|
|00003e40| 72 69 6e 67 20 23 5b 28 | 26 6f 70 74 69 6f 6e 61 |ring #[(|&optiona|
|00003e50| 6c 20 73 69 6c 65 6e 74 | 29 20 22 08 83 5c 6e 00 |l silent|) "..\n.|
|00003e60| 08 c1 9a 83 5c 66 00 c2 | 87 c3 08 21 84 1b 00 5c |....\f..|...!...\|
|00003e70| 66 86 89 00 c5 c6 08 5c | 22 87 c7 c8 21 08 c9 ca |f......\|"...!...|
|00003e80| 0e 0b 21 1e 5c 66 1e 0d | 1e 0e 1e 0f d0 8e 8a 0e |..!.\f..|........|
|00003e90| 0f 71 88 7e 88 d1 20 88 | d2 0e 0e 21 88 64 62 88 |.q.~.. .|...!.db.|
|00003ea0| 0e 0d 0e 0b 57 83 7f 00 | d3 d4 c2 d5 23 83 7f 00 |....W...|....#...|
|00003eb0| d6 94 d6 95 7b 1e 17 0e | 18 83 6e 00 d9 0e 5c 66 |....{...|..n...\f|
|00003ec0| 21 84 6e 00 da 0e 5c 66 | c9 5c 22 0e 17 98 84 75 |!.n...\f|.\"....u|
|00003ed0| 00 db 0e 5c 66 0e 17 5c | 22 88 29 0e 0d 54 89 16 |...\f..\|".)..T..|
|00003ee0| 0d 82 42 00 2a 0e 5c 66 | 16 1c c2 89 16 1d 2c 87 |..B.*.\f|......,.|
|00003ef0| 22 20 5b 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |" [comin|t-input-|
|00003f00| 72 69 6e 67 2d 66 69 6c | 65 2d 6e 61 6d 65 20 22 |ring-fil|e-name "|
|00003f10| 22 20 6e 69 6c 20 66 69 | 6c 65 2d 72 65 61 64 61 |" nil fi|le-reada|
|00003f20| 62 6c 65 2d 70 20 73 69 | 6c 65 6e 74 20 6d 65 73 |ble-p si|lent mes|
|00003f30| 73 61 67 65 20 22 43 61 | 6e 6e 6f 74 20 72 65 61 |sage "Ca|nnot rea|
|00003f40| 64 20 68 69 73 74 6f 72 | 79 20 66 69 6c 65 20 25 |d histor|y file %|
|00003f50| 73 22 20 67 65 74 2d 62 | 75 66 66 65 72 2d 63 72 |s" get-b|uffer-cr|
|00003f60| 65 61 74 65 20 22 20 2a | 74 65 6d 70 2a 22 20 30 |eate " *|temp*" 0|
|00003f70| 20 6d 61 6b 65 2d 72 69 | 6e 67 20 63 6f 6d 69 6e | make-ri|ng comin|
|00003f80| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 2d 73 69 7a |t-input-|ring-siz|
|00003f90| 65 20 72 69 6e 67 20 63 | 6f 75 6e 74 20 66 69 6c |e ring c|ount fil|
|00003fa0| 65 20 68 69 73 74 6f 72 | 79 2d 62 75 66 20 28 28 |e histor|y-buf ((|
|00003fb0| 6b 69 6c 6c 2d 62 75 66 | 66 65 72 20 68 69 73 74 |kill-buf|fer hist|
|00003fc0| 6f 72 79 2d 62 75 66 29 | 29 20 65 72 61 73 65 2d |ory-buf)|) erase-|
|00003fd0| 62 75 66 66 65 72 20 69 | 6e 73 65 72 74 2d 66 69 |buffer i|nsert-fi|
|00003fe0| 6c 65 2d 63 6f 6e 74 65 | 6e 74 73 20 72 65 2d 73 |le-conte|nts re-s|
|00003ff0| 65 61 72 63 68 2d 62 61 | 63 6b 77 61 72 64 20 22 |earch-ba|ckward "|
|00004000| 5e 5b 20 09 5d 2a 5c 5c | 28 5b 5e 23 5c 6e 5d 2e |^[ .]*\\|([^#\n].|
|00004010| 2a 5c 5c 29 5b 20 09 5d | 2a 24 22 20 74 20 31 20 |*\\)[ .]|*$" t 1 |
|00004020| 68 69 73 74 6f 72 79 20 | 63 6f 6d 69 6e 74 2d 69 |history |comint-i|
|00004030| 6e 70 75 74 2d 69 67 6e | 6f 72 65 64 75 70 73 20 |nput-ign|oredups |
|00004040| 72 69 6e 67 2d 65 6d 70 | 74 79 2d 70 20 72 69 6e |ring-emp|ty-p rin|
|00004050| 67 2d 72 65 66 20 72 69 | 6e 67 2d 69 6e 73 65 72 |g-ref ri|ng-inser|
|00004060| 74 2d 61 74 2d 62 65 67 | 69 6e 6e 69 6e 67 20 63 |t-at-beg|inning c|
|00004070| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00004080| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 | comint-|input-ri|
|00004090| 6e 67 2d 69 6e 64 65 78 | 5d 20 36 20 22 5c 0a 53 |ng-index|] 6 "\.S|
|000040a0| 65 74 73 20 74 68 65 20 | 62 75 66 66 65 72 27 73 |ets the |buffer's|
|000040b0| 20 60 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 72 | `comint|-input-r|
|000040c0| 69 6e 67 27 20 66 72 6f | 6d 20 61 20 68 69 73 74 |ing' fro|m a hist|
|000040d0| 6f 72 79 20 66 69 6c 65 | 2e 0a 54 68 65 20 6e 61 |ory file|..The na|
|000040e0| 6d 65 20 6f 66 20 74 68 | 65 20 66 69 6c 65 20 69 |me of th|e file i|
|000040f0| 73 20 67 69 76 65 6e 20 | 62 79 20 74 68 65 20 76 |s given |by the v|
|00004100| 61 72 69 61 62 6c 65 20 | 60 63 6f 6d 69 6e 74 2d |ariable |`comint-|
|00004110| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 66 69 6c 65 2d |input-ri|ng-file-|
|00004120| 6e 61 6d 65 27 2e 0a 54 | 68 65 20 68 69 73 74 6f |name'..T|he histo|
|00004130| 72 79 20 72 69 6e 67 20 | 69 73 20 6f 66 20 73 69 |ry ring |is of si|
|00004140| 7a 65 20 60 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |ze `comi|nt-input|
|00004150| 2d 72 69 6e 67 2d 73 69 | 7a 65 27 2c 20 72 65 67 |-ring-si|ze', reg|
|00004160| 61 72 64 6c 65 73 73 20 | 6f 66 20 66 69 6c 65 20 |ardless |of file |
|00004170| 73 69 7a 65 2e 0a 49 66 | 20 60 63 6f 6d 69 6e 74 |size..If| `comint|
|00004180| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 2d 66 69 6c 65 |-input-r|ing-file|
|00004190| 2d 6e 61 6d 65 27 20 69 | 73 20 6e 69 6c 20 74 68 |-name' i|s nil th|
|000041a0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 64 6f 65 73 |is funct|ion does|
|000041b0| 20 6e 6f 74 68 69 6e 67 | 2e 0a 0a 49 66 20 74 68 | nothing|...If th|
|000041c0| 65 20 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 75 6d |e option|al argum|
|000041d0| 65 6e 74 20 53 49 4c 45 | 4e 54 20 69 73 20 6e 6f |ent SILE|NT is no|
|000041e0| 6e 2d 6e 69 6c 2c 20 77 | 65 20 73 61 79 20 6e 6f |n-nil, w|e say no|
|000041f0| 74 68 69 6e 67 20 61 62 | 6f 75 74 20 61 0a 66 61 |thing ab|out a.fa|
|00004200| 69 6c 75 72 65 20 74 6f | 20 72 65 61 64 20 74 68 |ilure to| read th|
|00004210| 65 20 68 69 73 74 6f 72 | 79 20 66 69 6c 65 2e 0a |e histor|y file..|
|00004220| 0a 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 69 |.This fu|nction i|
|00004230| 73 20 75 73 65 66 75 6c | 20 66 6f 72 20 6d 61 6a |s useful| for maj|
|00004240| 6f 72 20 6d 6f 64 65 20 | 63 6f 6d 6d 61 6e 64 73 |or mode |commands|
|00004250| 20 61 6e 64 20 6d 6f 64 | 65 20 68 6f 6f 6b 73 2e | and mod|e hooks.|
|00004260| 0a 0a 54 68 65 20 73 74 | 72 75 63 74 75 72 65 20 |..The st|ructure |
|00004270| 6f 66 20 74 68 65 20 68 | 69 73 74 6f 72 79 20 66 |of the h|istory f|
|00004280| 69 6c 65 20 73 68 6f 75 | 6c 64 20 62 65 20 6f 6e |ile shou|ld be on|
|00004290| 65 20 69 6e 70 75 74 20 | 63 6f 6d 6d 61 6e 64 20 |e input |command |
|000042a0| 70 65 72 20 6c 69 6e 65 | 2c 0a 77 69 74 68 20 74 |per line|,.with t|
|000042b0| 68 65 20 6d 6f 73 74 20 | 72 65 63 65 6e 74 20 63 |he most |recent c|
|000042c0| 6f 6d 6d 61 6e 64 20 6c | 61 73 74 2e 0a 53 65 65 |ommand l|ast..See|
|000042d0| 20 61 6c 73 6f 20 60 63 | 6f 6d 69 6e 74 2d 69 6e | also `c|omint-in|
|000042e0| 70 75 74 2d 69 67 6e 6f | 72 65 64 75 70 73 27 20 |put-igno|redups' |
|000042f0| 61 6e 64 20 60 63 6f 6d | 69 6e 74 2d 77 72 69 74 |and `com|int-writ|
|00004300| 65 2d 69 6e 70 75 74 2d | 72 69 6e 67 27 2e 22 5d |e-input-|ring'."]|
|00004310| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 63 6f 6d |).(defal|ias 'com|
|00004320| 69 6e 74 2d 77 72 69 74 | 65 2d 69 6e 70 75 74 2d |int-writ|e-input-|
|00004330| 72 69 6e 67 20 23 5b 6e | 69 6c 20 22 08 83 14 00 |ring #[n|il "....|
|00004340| 08 c1 9a 84 14 00 5c 6e | 83 14 00 c3 5c 6e 21 83 |......\n|....\n!.|
|00004350| 16 00 c4 87 c5 08 21 84 | 21 00 c6 c7 08 5c 22 87 |......!.|!....\".|
|00004360| c8 c9 21 1e 5c 6e 5c 6e | 1e 0b 08 1e 5c 66 cd 0e |..!.\n\n|....\f..|
|00004370| 0b 21 1e 0e 8a 0e 5c 6e | 71 88 cf 20 88 0e 0e d0 |.!....\n|q.. ....|
|00004380| 56 83 53 00 0e 0e 53 16 | 0e d1 0e 0b 0e 0e 5c 22 |V.S...S.|......\"|
|00004390| d2 b1 02 88 82 3a 00 d3 | d4 20 c4 0e 5c 66 c4 d5 |.....:..|. ..\f..|
|000043a0| 25 88 d6 c4 21 2d 87 22 | 20 5b 63 6f 6d 69 6e 74 |%...!-."| [comint|
|000043b0| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 2d 66 69 6c 65 |-input-r|ing-file|
|000043c0| 2d 6e 61 6d 65 20 22 22 | 20 63 6f 6d 69 6e 74 2d |-name ""| comint-|
|000043d0| 69 6e 70 75 74 2d 72 69 | 6e 67 20 72 69 6e 67 2d |input-ri|ng ring-|
|000043e0| 65 6d 70 74 79 2d 70 20 | 6e 69 6c 20 66 69 6c 65 |empty-p |nil file|
|000043f0| 2d 77 72 69 74 61 62 6c | 65 2d 70 20 6d 65 73 73 |-writabl|e-p mess|
|00004400| 61 67 65 20 22 43 61 6e | 6e 6f 74 20 77 72 69 74 |age "Can|not writ|
|00004410| 65 20 68 69 73 74 6f 72 | 79 20 66 69 6c 65 20 25 |e histor|y file %|
|00004420| 73 22 20 67 65 74 2d 62 | 75 66 66 65 72 2d 63 72 |s" get-b|uffer-cr|
|00004430| 65 61 74 65 20 22 20 2a | 54 65 6d 70 20 49 6e 70 |eate " *|Temp Inp|
|00004440| 75 74 20 48 69 73 74 6f | 72 79 2a 22 20 68 69 73 |ut Histo|ry*" his|
|00004450| 74 6f 72 79 2d 62 75 66 | 20 72 69 6e 67 20 66 69 |tory-buf| ring fi|
|00004460| 6c 65 20 72 69 6e 67 2d | 6c 65 6e 67 74 68 20 69 |le ring-|length i|
|00004470| 6e 64 65 78 20 65 72 61 | 73 65 2d 62 75 66 66 65 |ndex era|se-buffe|
|00004480| 72 20 30 20 72 69 6e 67 | 2d 72 65 66 20 31 30 20 |r 0 ring|-ref 10 |
|00004490| 77 72 69 74 65 2d 72 65 | 67 69 6f 6e 20 62 75 66 |write-re|gion buf|
|000044a0| 66 65 72 2d 73 74 72 69 | 6e 67 20 6e 6f 2d 6d 65 |fer-stri|ng no-me|
|000044b0| 73 73 61 67 65 20 6b 69 | 6c 6c 2d 62 75 66 66 65 |ssage ki|ll-buffe|
|000044c0| 72 5d 20 36 20 22 5c 0a | 57 72 69 74 65 73 20 74 |r] 6 "\.|Writes t|
|000044d0| 68 65 20 62 75 66 66 65 | 72 27 73 20 60 63 6f 6d |he buffe|r's `com|
|000044e0| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 27 20 |int-inpu|t-ring' |
|000044f0| 74 6f 20 61 20 68 69 73 | 74 6f 72 79 20 66 69 6c |to a his|tory fil|
|00004500| 65 2e 0a 54 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |e..The n|ame of t|
|00004510| 68 65 20 66 69 6c 65 20 | 69 73 20 67 69 76 65 6e |he file |is given|
|00004520| 20 62 79 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 | by the |variable|
|00004530| 20 60 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 72 | `comint|-input-r|
|00004540| 69 6e 67 2d 66 69 6c 65 | 2d 6e 61 6d 65 27 2e 0a |ing-file|-name'..|
|00004550| 54 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 63 6f 6e |The orig|inal con|
|00004560| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 20 66 69 6c |tents of| the fil|
|00004570| 65 20 61 72 65 20 6c 6f | 73 74 20 69 66 20 60 63 |e are lo|st if `c|
|00004580| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00004590| 27 20 69 73 20 6e 6f 74 | 20 65 6d 70 74 79 2e 0a |' is not| empty..|
|000045a0| 49 66 20 60 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |If `comi|nt-input|
|000045b0| 2d 72 69 6e 67 2d 66 69 | 6c 65 2d 6e 61 6d 65 27 |-ring-fi|le-name'|
|000045c0| 20 69 73 20 6e 69 6c 20 | 74 68 69 73 20 66 75 6e | is nil |this fun|
|000045d0| 63 74 69 6f 6e 20 64 6f | 65 73 20 6e 6f 74 68 69 |ction do|es nothi|
|000045e0| 6e 67 2e 0a 0a 55 73 65 | 66 75 6c 20 77 69 74 68 |ng...Use|ful with|
|000045f0| 69 6e 20 70 72 6f 63 65 | 73 73 20 73 65 6e 74 69 |in proce|ss senti|
|00004600| 6e 65 6c 73 2e 0a 0a 53 | 65 65 20 61 6c 73 6f 20 |nels...S|ee also |
|00004610| 60 63 6f 6d 69 6e 74 2d | 72 65 61 64 2d 69 6e 70 |`comint-|read-inp|
|00004620| 75 74 2d 72 69 6e 67 27 | 2e 22 5d 29 0a 28 64 65 |ut-ring'|."]).(de|
|00004630| 66 61 6c 69 61 73 20 27 | 63 6f 6d 69 6e 74 2d 64 |falias '|comint-d|
|00004640| 79 6e 61 6d 69 63 2d 6c | 69 73 74 2d 69 6e 70 75 |ynamic-l|ist-inpu|
|00004650| 74 2d 72 69 6e 67 20 23 | 5b 6e 69 6c 20 22 c0 09 |t-ring #|[nil "..|
|00004660| 21 83 5c 66 00 c2 09 21 | 83 10 00 c3 c4 21 87 c5 |!.\f...!|.....!..|
|00004670| c6 c7 09 21 53 c8 20 1e | 09 1e 5c 6e 1e 0b 1e 5c |...!S. .|..\n...\|
|00004680| 66 0e 5c 6e cd 59 83 3a | 00 ce 09 0e 5c 6e 5c 22 |f.\n.Y.:|....\n\"|
|00004690| 0e 5c 66 42 16 5c 66 0e | 5c 6e 53 89 16 5c 6e 82 |.\fB.\f.|\nS..\n.|
|000046a0| 5c 22 00 0e 0b 90 cf 0e | 5c 66 21 88 0e 0b 71 88 |\"......|\f!...q.|
|000046b0| d0 79 88 d1 d2 c5 d3 23 | 85 58 00 d4 d5 21 88 82 |.y.....#|.X...!..|
|000046c0| 49 00 91 88 d6 cd 21 88 | c3 d7 21 88 d8 20 89 1e |I.....!.|..!.. ..|
|000046d0| 19 da 3d 83 73 00 db 0e | 09 21 82 79 00 0e 19 43 |..=.s...|.!.y...C|
|000046e0| 89 16 1c 2d 87 22 20 5b | 72 69 6e 67 2d 70 20 63 |...-." [|ring-p c|
|000046f0| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00004700| 20 72 69 6e 67 2d 65 6d | 70 74 79 2d 70 20 6d 65 | ring-em|pty-p me|
|00004710| 73 73 61 67 65 20 22 4e | 6f 20 68 69 73 74 6f 72 |ssage "N|o histor|
|00004720| 79 22 20 6e 69 6c 20 22 | 20 2a 49 6e 70 75 74 20 |y" nil "| *Input |
|00004730| 48 69 73 74 6f 72 79 2a | 22 20 72 69 6e 67 2d 6c |History*|" ring-l|
|00004740| 65 6e 67 74 68 20 63 75 | 72 72 65 6e 74 2d 77 69 |ength cu|rrent-wi|
|00004750| 6e 64 6f 77 2d 63 6f 6e | 66 69 67 75 72 61 74 69 |ndow-con|figurati|
|00004760| 6f 6e 20 63 6f 6e 66 20 | 69 6e 64 65 78 20 68 69 |on conf |index hi|
|00004770| 73 74 6f 72 79 2d 62 75 | 66 66 65 72 20 68 69 73 |story-bu|ffer his|
|00004780| 74 6f 72 79 20 30 20 72 | 69 6e 67 2d 72 65 66 20 |tory 0 r|ing-ref |
|00004790| 64 69 73 70 6c 61 79 2d | 63 6f 6d 70 6c 65 74 69 |display-|completi|
|000047a0| 6f 6e 2d 6c 69 73 74 20 | 33 20 73 65 61 72 63 68 |on-list |3 search|
|000047b0| 2d 62 61 63 6b 77 61 72 | 64 20 22 63 6f 6d 70 6c |-backwar|d "compl|
|000047c0| 65 74 69 6f 6e 22 20 6d | 6f 76 65 20 72 65 70 6c |etion" m|ove repl|
|000047d0| 61 63 65 2d 6d 61 74 63 | 68 20 22 68 69 73 74 6f |ace-matc|h "histo|
|000047e0| 72 79 20 72 65 66 65 72 | 65 6e 63 65 22 20 73 69 |ry refer|ence" si|
|000047f0| 74 2d 66 6f 72 20 22 48 | 69 74 20 73 70 61 63 65 |t-for "H|it space|
|00004800| 20 74 6f 20 66 6c 75 73 | 68 22 20 72 65 61 64 2d | to flus|h" read-|
|00004810| 65 76 65 6e 74 20 63 68 | 20 33 32 20 73 65 74 2d |event ch| 32 set-|
|00004820| 77 69 6e 64 6f 77 2d 63 | 6f 6e 66 69 67 75 72 61 |window-c|onfigura|
|00004830| 74 69 6f 6e 20 75 6e 72 | 65 61 64 2d 63 6f 6d 6d |tion unr|ead-comm|
|00004840| 61 6e 64 2d 65 76 65 6e | 74 73 5d 20 36 20 22 5c |and-even|ts] 6 "\|
|00004850| 0a 4c 69 73 74 20 69 6e | 20 68 65 6c 70 20 62 75 |.List in| help bu|
|00004860| 66 66 65 72 20 74 68 65 | 20 62 75 66 66 65 72 27 |ffer the| buffer'|
|00004870| 73 20 69 6e 70 75 74 20 | 68 69 73 74 6f 72 79 2e |s input |history.|
|00004880| 22 20 6e 69 6c 5d 29 0a | 28 62 79 74 65 2d 63 6f |" nil]).|(byte-co|
|00004890| 64 65 20 22 c0 c1 c2 5c | 22 88 c0 c3 c4 5c 22 88 |de "...\|"....\".|
|000048a0| c0 c5 c6 5c 22 87 22 20 | 5b 64 65 66 61 6c 69 61 |...\"." |[defalia|
|000048b0| 73 20 63 6f 6d 69 6e 74 | 2d 72 65 67 65 78 70 2d |s comint|-regexp-|
|000048c0| 61 72 67 20 23 5b 28 70 | 72 6f 6d 70 74 29 20 22 |arg #[(p|rompt) "|
|000048d0| c0 19 5c 6e 1a c3 5c 66 | c0 89 89 c5 25 89 1e 06 |..\n..\f|....%...|
|000048e0| c7 98 83 1b 00 0d 89 41 | 40 a0 82 1d 00 0e 06 c8 |.......A|@.......|
|000048f0| 0e 09 21 2b 44 87 22 20 | 5b 6e 69 6c 20 6d 69 6e |..!+D." |[nil min|
|00004900| 69 62 75 66 66 65 72 2d | 68 69 73 74 6f 72 79 2d |ibuffer-|history-|
|00004910| 73 65 78 70 2d 66 6c 61 | 67 20 6c 61 73 74 2d 63 |sexp-fla|g last-c|
|00004920| 6f 6d 6d 61 6e 64 20 72 | 65 61 64 2d 66 72 6f 6d |ommand r|ead-from|
|00004930| 2d 6d 69 6e 69 62 75 66 | 66 65 72 20 70 72 6f 6d |-minibuf|fer prom|
|00004940| 70 74 20 6d 69 6e 69 62 | 75 66 66 65 72 2d 68 69 |pt minib|uffer-hi|
|00004950| 73 74 6f 72 79 2d 73 65 | 61 72 63 68 2d 68 69 73 |story-se|arch-his|
|00004960| 74 6f 72 79 20 72 65 67 | 65 78 70 20 22 22 20 70 |tory reg|exp "" p|
|00004970| 72 65 66 69 78 2d 6e 75 | 6d 65 72 69 63 2d 76 61 |refix-nu|meric-va|
|00004980| 6c 75 65 20 63 75 72 72 | 65 6e 74 2d 70 72 65 66 |lue curr|ent-pref|
|00004990| 69 78 2d 61 72 67 5d 20 | 37 5d 20 63 6f 6d 69 6e |ix-arg] |7] comin|
|000049a0| 74 2d 73 65 61 72 63 68 | 2d 61 72 67 20 23 5b 28 |t-search|-arg #[(|
|000049b0| 61 72 67 29 20 22 c0 20 | 84 09 00 c1 c2 21 87 0b |arg) ". |.....!..|
|000049c0| 83 13 00 c4 0b 21 83 17 | 00 c1 c5 21 87 0e 06 c7 |.....!..|...!....|
|000049d0| 55 83 23 00 c8 16 09 ca | 87 0e 06 87 22 20 5b 63 |U.#.....|...." [c|
|000049e0| 6f 6d 69 6e 74 2d 61 66 | 74 65 72 2d 70 6d 61 72 |omint-af|ter-pmar|
|000049f0| 6b 2d 70 20 65 72 72 6f | 72 20 22 4e 6f 74 20 61 |k-p erro|r "Not a|
|00004a00| 74 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 22 20 |t comman|d line" |
|00004a10| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 72 69 6e |comint-i|nput-rin|
|00004a20| 67 20 72 69 6e 67 2d 65 | 6d 70 74 79 2d 70 20 22 |g ring-e|mpty-p "|
|00004a30| 45 6d 70 74 79 20 69 6e | 70 75 74 20 72 69 6e 67 |Empty in|put ring|
|00004a40| 22 20 61 72 67 20 30 20 | 6e 69 6c 20 63 6f 6d 69 |" arg 0 |nil comi|
|00004a50| 6e 74 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 69 6e |nt-input|-ring-in|
|00004a60| 64 65 78 20 31 5d 20 32 | 5d 20 63 6f 6d 69 6e 74 |dex 1] 2|] comint|
|00004a70| 2d 73 65 61 72 63 68 2d | 73 74 61 72 74 20 23 5b |-search-|start #[|
|00004a80| 28 61 72 67 29 20 22 08 | 83 18 00 c1 08 5c 6e c3 |(arg) ".|.....\n.|
|00004a90| 56 83 10 00 c4 82 11 00 | c5 5c 5c c6 0e 07 21 5c |V.......|.\\...!\|
|00004aa0| 22 87 5c 6e c3 59 83 20 | 00 c3 87 c6 0e 07 21 53 |".\n.Y. |......!S|
|00004ab0| 87 22 20 5b 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |." [comi|nt-input|
|00004ac0| 2d 72 69 6e 67 2d 69 6e | 64 65 78 20 6d 6f 64 20 |-ring-in|dex mod |
|00004ad0| 61 72 67 20 30 20 31 20 | 2d 31 20 72 69 6e 67 2d |arg 0 1 |-1 ring-|
|00004ae0| 6c 65 6e 67 74 68 20 63 | 6f 6d 69 6e 74 2d 69 6e |length c|omint-in|
|00004af0| 70 75 74 2d 72 69 6e 67 | 5d 20 34 5d 5d 20 33 29 |put-ring|] 4]] 3)|
|00004b00| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 63 6f 6d 69 |.(defali|as 'comi|
|00004b10| 6e 74 2d 70 72 65 76 69 | 6f 75 73 2d 69 6e 70 75 |nt-previ|ous-inpu|
|00004b20| 74 2d 73 74 72 69 6e 67 | 20 23 5b 28 61 72 67 29 |t-string| #[(arg)|
|00004b30| 20 22 c0 09 5c 6e 83 11 | 00 c3 5c 66 5c 6e 5c 5c | "..\n..|..\f\n\\|
|00004b40| c5 09 21 5c 22 82 12 00 | 5c 66 5c 22 87 22 20 5b |..!\"...|\f\"." [|
|00004b50| 72 69 6e 67 2d 72 65 66 | 20 63 6f 6d 69 6e 74 2d |ring-ref| comint-|
|00004b60| 69 6e 70 75 74 2d 72 69 | 6e 67 20 63 6f 6d 69 6e |input-ri|ng comin|
|00004b70| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 2d 69 6e 64 |t-input-|ring-ind|
|00004b80| 65 78 20 6d 6f 64 20 61 | 72 67 20 72 69 6e 67 2d |ex mod a|rg ring-|
|00004b90| 6c 65 6e 67 74 68 5d 20 | 36 20 22 5c 0a 52 65 74 |length] |6 "\.Ret|
|00004ba0| 75 72 6e 20 74 68 65 20 | 73 74 72 69 6e 67 20 41 |urn the |string A|
|00004bb0| 52 47 20 70 6c 61 63 65 | 73 20 61 6c 6f 6e 67 20 |RG place|s along |
|00004bc0| 74 68 65 20 69 6e 70 75 | 74 20 72 69 6e 67 2e 0a |the inpu|t ring..|
|00004bd0| 4d 6f 76 65 73 20 72 65 | 6c 61 74 69 76 65 20 74 |Moves re|lative t|
|00004be0| 6f 20 60 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |o `comin|t-input-|
|00004bf0| 72 69 6e 67 2d 69 6e 64 | 65 78 27 2e 22 5d 29 0a |ring-ind|ex'."]).|
|00004c00| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|00004c10| 74 2d 70 72 65 76 69 6f | 75 73 2d 69 6e 70 75 74 |t-previo|us-input|
|00004c20| 20 23 5b 28 61 72 67 29 | 20 22 c0 c1 5c 6e 5c 22 | #[(arg)| "..\n\"|
|00004c30| 87 22 20 5b 63 6f 6d 69 | 6e 74 2d 70 72 65 76 69 |." [comi|nt-previ|
|00004c40| 6f 75 73 2d 6d 61 74 63 | 68 69 6e 67 2d 69 6e 70 |ous-matc|hing-inp|
|00004c50| 75 74 20 22 2e 22 20 61 | 72 67 5d 20 33 20 22 5c |ut "." a|rg] 3 "\|
|00004c60| 0a 43 79 63 6c 65 20 62 | 61 63 6b 77 61 72 64 73 |.Cycle b|ackwards|
|00004c70| 20 74 68 72 6f 75 67 68 | 20 69 6e 70 75 74 20 68 | through| input h|
|00004c80| 69 73 74 6f 72 79 2e 22 | 20 22 2a 70 22 5d 29 0a |istory."| "*p"]).|
|00004c90| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|00004ca0| 74 2d 6e 65 78 74 2d 69 | 6e 70 75 74 20 23 5b 28 |t-next-i|nput #[(|
|00004cb0| 61 72 67 29 20 22 c0 09 | 5b 21 87 22 20 5b 63 6f |arg) "..|[!." [co|
|00004cc0| 6d 69 6e 74 2d 70 72 65 | 76 69 6f 75 73 2d 69 6e |mint-pre|vious-in|
|00004cd0| 70 75 74 20 61 72 67 5d | 20 32 20 22 5c 0a 43 79 |put arg]| 2 "\.Cy|
|00004ce0| 63 6c 65 20 66 6f 72 77 | 61 72 64 73 20 74 68 72 |cle forw|ards thr|
|00004cf0| 6f 75 67 68 20 69 6e 70 | 75 74 20 68 69 73 74 6f |ough inp|ut histo|
|00004d00| 72 79 2e 22 20 22 2a 70 | 22 5d 29 0a 28 64 65 66 |ry." "*p|"]).(def|
|00004d10| 61 6c 69 61 73 20 27 63 | 6f 6d 69 6e 74 2d 70 72 |alias 'c|omint-pr|
|00004d20| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|00004d30| 69 6e 70 75 74 2d 73 74 | 72 69 6e 67 20 23 5b 28 |input-st|ring #[(|
|00004d40| 72 65 67 65 78 70 20 61 | 72 67 29 20 22 c0 09 5c |regexp a|rg) "..\|
|00004d50| 6e 5c 22 89 1b 85 0d 00 | c4 0d 0b 5c 22 29 87 22 |n\".....|...\")."|
|00004d60| 20 5b 63 6f 6d 69 6e 74 | 2d 70 72 65 76 69 6f 75 | [comint|-previou|
|00004d70| 73 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |s-matchi|ng-input|
|00004d80| 2d 73 74 72 69 6e 67 2d | 70 6f 73 69 74 69 6f 6e |-string-|position|
|00004d90| 20 72 65 67 65 78 70 20 | 61 72 67 20 70 6f 73 20 | regexp |arg pos |
|00004da0| 72 69 6e 67 2d 72 65 66 | 20 63 6f 6d 69 6e 74 2d |ring-ref| comint-|
|00004db0| 69 6e 70 75 74 2d 72 69 | 6e 67 5d 20 34 20 22 5c |input-ri|ng] 4 "\|
|00004dc0| 0a 52 65 74 75 72 6e 20 | 74 68 65 20 73 74 72 69 |.Return |the stri|
|00004dd0| 6e 67 20 6d 61 74 63 68 | 69 6e 67 20 52 45 47 45 |ng match|ing REGE|
|00004de0| 58 50 20 41 52 47 20 70 | 6c 61 63 65 73 20 61 6c |XP ARG p|laces al|
|00004df0| 6f 6e 67 20 74 68 65 20 | 69 6e 70 75 74 20 72 69 |ong the |input ri|
|00004e00| 6e 67 2e 0a 4d 6f 76 65 | 73 20 72 65 6c 61 74 69 |ng..Move|s relati|
|00004e10| 76 65 20 74 6f 20 60 63 | 6f 6d 69 6e 74 2d 69 6e |ve to `c|omint-in|
|00004e20| 70 75 74 2d 72 69 6e 67 | 2d 69 6e 64 65 78 27 2e |put-ring|-index'.|
|00004e30| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 63 |"]).(def|alias 'c|
|00004e40| 6f 6d 69 6e 74 2d 70 72 | 65 76 69 6f 75 73 2d 6d |omint-pr|evious-m|
|00004e50| 61 74 63 68 69 6e 67 2d | 69 6e 70 75 74 2d 73 74 |atching-|input-st|
|00004e60| 72 69 6e 67 2d 70 6f 73 | 69 74 69 6f 6e 20 23 5b |ring-pos|ition #[|
|00004e70| 28 72 65 67 65 78 70 20 | 61 72 67 20 26 6f 70 74 |(regexp |arg &opt|
|00004e80| 69 6f 6e 61 6c 20 73 74 | 61 72 74 29 20 22 c0 09 |ional st|art) "..|
|00004e90| 21 83 5c 66 00 c2 09 21 | 83 10 00 c3 c4 21 88 c5 |!.\f...!|.....!..|
|00004ea0| 09 21 1e 06 0e 07 c8 56 | 83 20 00 c9 82 21 00 ca |.!.....V|. ...!..|
|00004eb0| 1e 0b cc 0e 0d 86 2d 00 | ce 0e 07 21 0e 0b 5a 0e |......-.|...!..Z.|
|00004ec0| 06 5c 22 1e 0f d0 1e 11 | d0 1e 12 0e 07 c8 55 84 |.\".....|......U.|
|00004ed0| 99 00 0e 11 84 99 00 0e | 0f 16 12 cc 0e 0f 0e 0b |........|........|
|00004ee0| 5c 5c 0e 06 5c 22 16 0f | 0e 0f 0e 06 57 83 83 00 |\\..\"..|....W...|
|00004ef0| 0e 11 84 83 00 d3 0e 14 | d5 09 0e 0f 5c 22 5c 22 |........|....\"\"|
|00004f00| 84 83 00 cc 0e 0f 0e 0b | 5c 5c 0e 06 5c 22 89 16 |........|\\..\"..|
|00004f10| 0f 0e 12 55 16 11 82 56 | 00 0e 07 c8 56 83 90 00 |...U...V|....V...|
|00004f20| 0e 07 53 82 93 00 0e 07 | 54 89 16 07 82 3d 00 d3 |..S.....|T....=..|
|00004f30| 0e 14 d5 09 0e 0f 5c 22 | 5c 22 85 a7 00 0e 0f 2d |......\"|\".....-|
|00004f40| 87 22 20 5b 72 69 6e 67 | 2d 70 20 63 6f 6d 69 6e |." [ring|-p comin|
|00004f50| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 20 72 69 6e |t-input-|ring rin|
|00004f60| 67 2d 65 6d 70 74 79 2d | 70 20 65 72 72 6f 72 20 |g-empty-|p error |
|00004f70| 22 4e 6f 20 68 69 73 74 | 6f 72 79 22 20 72 69 6e |"No hist|ory" rin|
|00004f80| 67 2d 6c 65 6e 67 74 68 | 20 6c 65 6e 20 61 72 67 |g-length| len arg|
|00004f90| 20 30 20 31 20 2d 31 20 | 6d 6f 74 69 6f 6e 20 6d | 0 1 -1 |motion m|
|00004fa0| 6f 64 20 73 74 61 72 74 | 20 63 6f 6d 69 6e 74 2d |od start| comint-|
|00004fb0| 73 65 61 72 63 68 2d 73 | 74 61 72 74 20 6e 20 6e |search-s|tart n n|
|00004fc0| 69 6c 20 74 72 69 65 64 | 2d 65 61 63 68 2d 72 69 |il tried|-each-ri|
|00004fd0| 6e 67 2d 69 74 65 6d 20 | 70 72 65 76 20 73 74 72 |ng-item |prev str|
|00004fe0| 69 6e 67 2d 6d 61 74 63 | 68 20 72 65 67 65 78 70 |ing-matc|h regexp|
|00004ff0| 20 72 69 6e 67 2d 72 65 | 66 5d 20 36 20 22 5c 0a | ring-re|f] 6 "\.|
|00005000| 52 65 74 75 72 6e 20 74 | 68 65 20 69 6e 64 65 78 |Return t|he index|
|00005010| 20 6d 61 74 63 68 69 6e | 67 20 52 45 47 45 58 50 | matchin|g REGEXP|
|00005020| 20 41 52 47 20 70 6c 61 | 63 65 73 20 61 6c 6f 6e | ARG pla|ces alon|
|00005030| 67 20 74 68 65 20 69 6e | 70 75 74 20 72 69 6e 67 |g the in|put ring|
|00005040| 2e 0a 4d 6f 76 65 73 20 | 72 65 6c 61 74 69 76 65 |..Moves |relative|
|00005050| 20 74 6f 20 53 54 41 52 | 54 2c 20 6f 72 20 60 63 | to STAR|T, or `c|
|00005060| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00005070| 2d 69 6e 64 65 78 27 2e | 22 5d 29 0a 28 64 65 66 |-index'.|"]).(def|
|00005080| 61 6c 69 61 73 20 27 63 | 6f 6d 69 6e 74 2d 70 72 |alias 'c|omint-pr|
|00005090| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|000050a0| 69 6e 70 75 74 20 23 5b | 28 72 65 67 65 78 70 20 |input #[|(regexp |
|000050b0| 61 72 67 29 20 22 c0 09 | 21 11 c2 0b 09 5c 22 89 |arg) "..|!....\".|
|000050c0| 1c 84 13 00 c5 c6 21 82 | 2a 00 5c 66 16 07 c8 c9 |......!.|*.\f....|
|000050d0| 5c 66 54 5c 22 88 ca cb | 70 21 21 60 7c 88 cc 0e |\fT\"...|p!!`|...|
|000050e0| 0d 5c 66 5c 22 63 29 87 | 22 20 5b 63 6f 6d 69 6e |.\f\"c).|" [comin|
|000050f0| 74 2d 73 65 61 72 63 68 | 2d 61 72 67 20 61 72 67 |t-search|-arg arg|
|00005100| 20 63 6f 6d 69 6e 74 2d | 70 72 65 76 69 6f 75 73 | comint-|previous|
|00005110| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 2d |-matchin|g-input-|
|00005120| 73 74 72 69 6e 67 2d 70 | 6f 73 69 74 69 6f 6e 20 |string-p|osition |
|00005130| 72 65 67 65 78 70 20 70 | 6f 73 20 65 72 72 6f 72 |regexp p|os error|
|00005140| 20 22 4e 6f 74 20 66 6f | 75 6e 64 22 20 63 6f 6d | "Not fo|und" com|
|00005150| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 2d 69 |int-inpu|t-ring-i|
|00005160| 6e 64 65 78 20 6d 65 73 | 73 61 67 65 20 22 48 69 |ndex mes|sage "Hi|
|00005170| 73 74 6f 72 79 20 69 74 | 65 6d 3a 20 25 64 22 20 |story it|em: %d" |
|00005180| 70 72 6f 63 65 73 73 2d | 6d 61 72 6b 20 67 65 74 |process-|mark get|
|00005190| 2d 62 75 66 66 65 72 2d | 70 72 6f 63 65 73 73 20 |-buffer-|process |
|000051a0| 72 69 6e 67 2d 72 65 66 | 20 63 6f 6d 69 6e 74 2d |ring-ref| comint-|
|000051b0| 69 6e 70 75 74 2d 72 69 | 6e 67 5d 20 34 20 22 5c |input-ri|ng] 4 "\|
|000051c0| 0a 53 65 61 72 63 68 20 | 62 61 63 6b 77 61 72 64 |.Search |backward|
|000051d0| 73 20 74 68 72 6f 75 67 | 68 20 69 6e 70 75 74 20 |s throug|h input |
|000051e0| 68 69 73 74 6f 72 79 20 | 66 6f 72 20 6d 61 74 63 |history |for matc|
|000051f0| 68 20 66 6f 72 20 52 45 | 47 45 58 50 2e 0a 28 50 |h for RE|GEXP..(P|
|00005200| 72 65 76 69 6f 75 73 20 | 68 69 73 74 6f 72 79 20 |revious |history |
|00005210| 65 6c 65 6d 65 6e 74 73 | 20 61 72 65 20 65 61 72 |elements| are ear|
|00005220| 6c 69 65 72 20 63 6f 6d | 6d 61 6e 64 73 2e 29 0a |lier com|mands.).|
|00005230| 57 69 74 68 20 70 72 65 | 66 69 78 20 61 72 67 75 |With pre|fix argu|
|00005240| 6d 65 6e 74 20 4e 2c 20 | 73 65 61 72 63 68 20 66 |ment N, |search f|
|00005250| 6f 72 20 4e 74 68 20 70 | 72 65 76 69 6f 75 73 20 |or Nth p|revious |
|00005260| 6d 61 74 63 68 2e 0a 49 | 66 20 4e 20 69 73 20 6e |match..I|f N is n|
|00005270| 65 67 61 74 69 76 65 2c | 20 66 69 6e 64 20 74 68 |egative,| find th|
|00005280| 65 20 6e 65 78 74 20 6f | 72 20 4e 74 68 20 6e 65 |e next o|r Nth ne|
|00005290| 78 74 20 6d 61 74 63 68 | 2e 22 20 28 63 6f 6d 69 |xt match|." (comi|
|000052a0| 6e 74 2d 72 65 67 65 78 | 70 2d 61 72 67 20 22 50 |nt-regex|p-arg "P|
|000052b0| 72 65 76 69 6f 75 73 20 | 69 6e 70 75 74 20 6d 61 |revious |input ma|
|000052c0| 74 63 68 69 6e 67 20 28 | 72 65 67 65 78 70 29 3a |tching (|regexp):|
|000052d0| 20 22 29 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 | ")]).(d|efalias |
|000052e0| 27 63 6f 6d 69 6e 74 2d | 6e 65 78 74 2d 6d 61 74 |'comint-|next-mat|
|000052f0| 63 68 69 6e 67 2d 69 6e | 70 75 74 20 23 5b 28 72 |ching-in|put #[(r|
|00005300| 65 67 65 78 70 20 61 72 | 67 29 20 22 c0 09 5c 6e |egexp ar|g) "..\n|
|00005310| 5b 5c 22 87 22 20 5b 63 | 6f 6d 69 6e 74 2d 70 72 |[\"." [c|omint-pr|
|00005320| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|00005330| 69 6e 70 75 74 20 72 65 | 67 65 78 70 20 61 72 67 |input re|gexp arg|
|00005340| 5d 20 33 20 22 5c 0a 53 | 65 61 72 63 68 20 66 6f |] 3 "\.S|earch fo|
|00005350| 72 77 61 72 64 73 20 74 | 68 72 6f 75 67 68 20 69 |rwards t|hrough i|
|00005360| 6e 70 75 74 20 68 69 73 | 74 6f 72 79 20 66 6f 72 |nput his|tory for|
|00005370| 20 6d 61 74 63 68 20 66 | 6f 72 20 52 45 47 45 58 | match f|or REGEX|
|00005380| 50 2e 0a 28 4c 61 74 65 | 72 20 68 69 73 74 6f 72 |P..(Late|r histor|
|00005390| 79 20 65 6c 65 6d 65 6e | 74 73 20 61 72 65 20 6d |y elemen|ts are m|
|000053a0| 6f 72 65 20 72 65 63 65 | 6e 74 20 63 6f 6d 6d 61 |ore rece|nt comma|
|000053b0| 6e 64 73 2e 29 0a 57 69 | 74 68 20 70 72 65 66 69 |nds.).Wi|th prefi|
|000053c0| 78 20 61 72 67 75 6d 65 | 6e 74 20 4e 2c 20 73 65 |x argume|nt N, se|
|000053d0| 61 72 63 68 20 66 6f 72 | 20 4e 74 68 20 66 6f 6c |arch for| Nth fol|
|000053e0| 6c 6f 77 69 6e 67 20 6d | 61 74 63 68 2e 0a 49 66 |lowing m|atch..If|
|000053f0| 20 4e 20 69 73 20 6e 65 | 67 61 74 69 76 65 2c 20 | N is ne|gative, |
|00005400| 66 69 6e 64 20 74 68 65 | 20 70 72 65 76 69 6f 75 |find the| previou|
|00005410| 73 20 6f 72 20 4e 74 68 | 20 70 72 65 76 69 6f 75 |s or Nth| previou|
|00005420| 73 20 6d 61 74 63 68 2e | 22 20 28 63 6f 6d 69 6e |s match.|" (comin|
|00005430| 74 2d 72 65 67 65 78 70 | 2d 61 72 67 20 22 4e 65 |t-regexp|-arg "Ne|
|00005440| 78 74 20 69 6e 70 75 74 | 20 6d 61 74 63 68 69 6e |xt input| matchin|
|00005450| 67 20 28 72 65 67 65 78 | 70 29 3a 20 22 29 5d 29 |g (regex|p): ")])|
|00005460| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 63 6f 6d 69 |.(defali|as 'comi|
|00005470| 6e 74 2d 70 72 65 76 69 | 6f 75 73 2d 6d 61 74 63 |nt-previ|ous-matc|
|00005480| 68 69 6e 67 2d 69 6e 70 | 75 74 2d 66 72 6f 6d 2d |hing-inp|ut-from-|
|00005490| 69 6e 70 75 74 20 23 5b | 28 61 72 67 29 20 22 08 |input #[|(arg) ".|
|000054a0| c1 3e 84 11 00 c2 c3 70 | 21 21 60 7b 14 c5 16 06 |.>.....p|!!`{....|
|000054b0| c7 c8 c9 5c 66 21 50 0e | 5c 6e 5c 22 87 22 20 5b |...\f!P.|\n\"." [|
|000054c0| 6c 61 73 74 2d 63 6f 6d | 6d 61 6e 64 20 28 63 6f |last-com|mand (co|
|000054d0| 6d 69 6e 74 2d 70 72 65 | 76 69 6f 75 73 2d 6d 61 |mint-pre|vious-ma|
|000054e0| 74 63 68 69 6e 67 2d 69 | 6e 70 75 74 2d 66 72 6f |tching-i|nput-fro|
|000054f0| 6d 2d 69 6e 70 75 74 20 | 63 6f 6d 69 6e 74 2d 6e |m-input |comint-n|
|00005500| 65 78 74 2d 6d 61 74 63 | 68 69 6e 67 2d 69 6e 70 |ext-matc|hing-inp|
|00005510| 75 74 2d 66 72 6f 6d 2d | 69 6e 70 75 74 29 20 70 |ut-from-|input) p|
|00005520| 72 6f 63 65 73 73 2d 6d | 61 72 6b 20 67 65 74 2d |rocess-m|ark get-|
|00005530| 62 75 66 66 65 72 2d 70 | 72 6f 63 65 73 73 20 63 |buffer-p|rocess c|
|00005540| 6f 6d 69 6e 74 2d 6d 61 | 74 63 68 69 6e 67 2d 69 |omint-ma|tching-i|
|00005550| 6e 70 75 74 2d 66 72 6f | 6d 2d 69 6e 70 75 74 2d |nput-fro|m-input-|
|00005560| 73 74 72 69 6e 67 20 6e | 69 6c 20 63 6f 6d 69 6e |string n|il comin|
|00005570| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 2d 69 6e 64 |t-input-|ring-ind|
|00005580| 65 78 20 63 6f 6d 69 6e | 74 2d 70 72 65 76 69 6f |ex comin|t-previo|
|00005590| 75 73 2d 6d 61 74 63 68 | 69 6e 67 2d 69 6e 70 75 |us-match|ing-inpu|
|000055a0| 74 20 22 5e 22 20 72 65 | 67 65 78 70 2d 71 75 6f |t "^" re|gexp-quo|
|000055b0| 74 65 20 61 72 67 5d 20 | 34 20 22 5c 0a 53 65 61 |te arg] |4 "\.Sea|
|000055c0| 72 63 68 20 62 61 63 6b | 77 61 72 64 73 20 74 68 |rch back|wards th|
|000055d0| 72 6f 75 67 68 20 69 6e | 70 75 74 20 68 69 73 74 |rough in|put hist|
|000055e0| 6f 72 79 20 66 6f 72 20 | 6d 61 74 63 68 20 66 6f |ory for |match fo|
|000055f0| 72 20 63 75 72 72 65 6e | 74 20 69 6e 70 75 74 2e |r curren|t input.|
|00005600| 0a 28 50 72 65 76 69 6f | 75 73 20 68 69 73 74 6f |.(Previo|us histo|
|00005610| 72 79 20 65 6c 65 6d 65 | 6e 74 73 20 61 72 65 20 |ry eleme|nts are |
|00005620| 65 61 72 6c 69 65 72 20 | 63 6f 6d 6d 61 6e 64 73 |earlier |commands|
|00005630| 2e 29 0a 57 69 74 68 20 | 70 72 65 66 69 78 20 61 |.).With |prefix a|
|00005640| 72 67 75 6d 65 6e 74 20 | 4e 2c 20 73 65 61 72 63 |rgument |N, searc|
|00005650| 68 20 66 6f 72 20 4e 74 | 68 20 70 72 65 76 69 6f |h for Nt|h previo|
|00005660| 75 73 20 6d 61 74 63 68 | 2e 0a 49 66 20 4e 20 69 |us match|..If N i|
|00005670| 73 20 6e 65 67 61 74 69 | 76 65 2c 20 73 65 61 72 |s negati|ve, sear|
|00005680| 63 68 20 66 6f 72 77 61 | 72 64 73 20 66 6f 72 20 |ch forwa|rds for |
|00005690| 74 68 65 20 2d 4e 74 68 | 20 66 6f 6c 6c 6f 77 69 |the -Nth| followi|
|000056a0| 6e 67 20 6d 61 74 63 68 | 2e 22 20 22 70 22 5d 29 |ng match|." "p"])|
|000056b0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 63 6f 6d 69 |.(defali|as 'comi|
|000056c0| 6e 74 2d 6e 65 78 74 2d | 6d 61 74 63 68 69 6e 67 |nt-next-|matching|
|000056d0| 2d 69 6e 70 75 74 2d 66 | 72 6f 6d 2d 69 6e 70 75 |-input-f|rom-inpu|
|000056e0| 74 20 23 5b 28 61 72 67 | 29 20 22 c0 09 5b 21 87 |t #[(arg|) "..[!.|
|000056f0| 22 20 5b 63 6f 6d 69 6e | 74 2d 70 72 65 76 69 6f |" [comin|t-previo|
|00005700| 75 73 2d 6d 61 74 63 68 | 69 6e 67 2d 69 6e 70 75 |us-match|ing-inpu|
|00005710| 74 2d 66 72 6f 6d 2d 69 | 6e 70 75 74 20 61 72 67 |t-from-i|nput arg|
|00005720| 5d 20 32 20 22 5c 0a 53 | 65 61 72 63 68 20 66 6f |] 2 "\.S|earch fo|
|00005730| 72 77 61 72 64 73 20 74 | 68 72 6f 75 67 68 20 69 |rwards t|hrough i|
|00005740| 6e 70 75 74 20 68 69 73 | 74 6f 72 79 20 66 6f 72 |nput his|tory for|
|00005750| 20 6d 61 74 63 68 20 66 | 6f 72 20 63 75 72 72 65 | match f|or curre|
|00005760| 6e 74 20 69 6e 70 75 74 | 2e 0a 28 46 6f 6c 6c 6f |nt input|..(Follo|
|00005770| 77 69 6e 67 20 68 69 73 | 74 6f 72 79 20 65 6c 65 |wing his|tory ele|
|00005780| 6d 65 6e 74 73 20 61 72 | 65 20 6d 6f 72 65 20 72 |ments ar|e more r|
|00005790| 65 63 65 6e 74 20 63 6f | 6d 6d 61 6e 64 73 2e 29 |ecent co|mmands.)|
|000057a0| 0a 57 69 74 68 20 70 72 | 65 66 69 78 20 61 72 67 |.With pr|efix arg|
|000057b0| 75 6d 65 6e 74 20 4e 2c | 20 73 65 61 72 63 68 20 |ument N,| search |
|000057c0| 66 6f 72 20 4e 74 68 20 | 66 6f 6c 6c 6f 77 69 6e |for Nth |followin|
|000057d0| 67 20 6d 61 74 63 68 2e | 0a 49 66 20 4e 20 69 73 |g match.|.If N is|
|000057e0| 20 6e 65 67 61 74 69 76 | 65 2c 20 73 65 61 72 63 | negativ|e, searc|
|000057f0| 68 20 62 61 63 6b 77 61 | 72 64 73 20 66 6f 72 20 |h backwa|rds for |
|00005800| 74 68 65 20 2d 4e 74 68 | 20 70 72 65 76 69 6f 75 |the -Nth| previou|
|00005810| 73 20 6d 61 74 63 68 2e | 22 20 22 70 22 5d 29 0a |s match.|" "p"]).|
|00005820| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|00005830| 74 2d 72 65 70 6c 61 63 | 65 2d 62 79 2d 65 78 70 |t-replac|e-by-exp|
|00005840| 61 6e 64 65 64 2d 68 69 | 73 74 6f 72 79 20 23 5b |anded-hi|story #[|
|00005850| 28 26 6f 70 74 69 6f 6e | 61 6c 20 73 69 6c 65 6e |(&option|al silen|
|00005860| 74 29 20 22 08 85 2c 00 | c1 c2 0b 20 5c 22 85 2c |t) "..,.|... \".,|
|00005870| 00 8a c4 79 88 c5 0e 06 | 21 29 85 2c 00 c7 20 1e |...y....|!).,.. .|
|00005880| 08 c9 ca 21 88 cb 0e 5c | 66 21 88 0e 08 c7 20 55 |...!...\|f!.... U|
|00005890| 29 3f 87 22 20 5b 63 6f | 6d 69 6e 74 2d 69 6e 70 |)?." [co|mint-inp|
|000058a0| 75 74 2d 61 75 74 6f 65 | 78 70 61 6e 64 20 73 74 |ut-autoe|xpand st|
|000058b0| 72 69 6e 67 2d 6d 61 74 | 63 68 20 22 5b 21 5e 5d |ring-mat|ch "[!^]|
|000058c0| 22 20 63 6f 6d 69 6e 74 | 2d 67 65 74 2d 6f 6c 64 |" comint|-get-old|
|000058d0| 2d 69 6e 70 75 74 20 30 | 20 6c 6f 6f 6b 69 6e 67 |-input 0| looking|
|000058e0| 2d 61 74 20 63 6f 6d 69 | 6e 74 2d 70 72 6f 6d 70 |-at comi|nt-promp|
|000058f0| 74 2d 72 65 67 65 78 70 | 20 62 75 66 66 65 72 2d |t-regexp| buffer-|
|00005900| 6d 6f 64 69 66 69 65 64 | 2d 74 69 63 6b 20 70 72 |modified|-tick pr|
|00005910| 65 76 69 6f 75 73 2d 6d | 6f 64 69 66 69 65 64 2d |evious-m|odified-|
|00005920| 74 69 63 6b 20 6d 65 73 | 73 61 67 65 20 22 45 78 |tick mes|sage "Ex|
|00005930| 70 61 6e 64 69 6e 67 20 | 68 69 73 74 6f 72 79 20 |panding |history |
|00005940| 72 65 66 65 72 65 6e 63 | 65 73 2e 2e 2e 22 20 63 |referenc|es..." c|
|00005950| 6f 6d 69 6e 74 2d 72 65 | 70 6c 61 63 65 2d 62 79 |omint-re|place-by|
|00005960| 2d 65 78 70 61 6e 64 65 | 64 2d 68 69 73 74 6f 72 |-expande|d-histor|
|00005970| 79 2d 62 65 66 6f 72 65 | 2d 70 6f 69 6e 74 20 73 |y-before|-point s|
|00005980| 69 6c 65 6e 74 5d 20 33 | 20 22 5c 0a 45 78 70 61 |ilent] 3| "\.Expa|
|00005990| 6e 64 20 69 6e 70 75 74 | 20 63 6f 6d 6d 61 6e 64 |nd input| command|
|000059a0| 20 68 69 73 74 6f 72 79 | 20 72 65 66 65 72 65 6e | history| referen|
|000059b0| 63 65 73 20 62 65 66 6f | 72 65 20 70 6f 69 6e 74 |ces befo|re point|
|000059c0| 2e 0a 45 78 70 61 6e 73 | 69 6f 6e 20 69 73 20 64 |..Expans|ion is d|
|000059d0| 65 70 65 6e 64 65 6e 74 | 20 6f 6e 20 74 68 65 20 |ependent| on the |
|000059e0| 76 61 6c 75 65 20 6f 66 | 20 60 63 6f 6d 69 6e 74 |value of| `comint|
|000059f0| 2d 69 6e 70 75 74 2d 61 | 75 74 6f 65 78 70 61 6e |-input-a|utoexpan|
|00005a00| 64 27 2e 0a 0a 54 68 69 | 73 20 66 75 6e 63 74 69 |d'...Thi|s functi|
|00005a10| 6f 6e 20 64 65 70 65 6e | 64 73 20 6f 6e 20 74 68 |on depen|ds on th|
|00005a20| 65 20 62 75 66 66 65 72 | 27 73 20 69 64 65 61 20 |e buffer|'s idea |
|00005a30| 6f 66 20 74 68 65 20 69 | 6e 70 75 74 20 68 69 73 |of the i|nput his|
|00005a40| 74 6f 72 79 2c 20 77 68 | 69 63 68 20 6d 61 79 20 |tory, wh|ich may |
|00005a50| 6e 6f 74 0a 6d 61 74 63 | 68 20 74 68 65 20 63 6f |not.matc|h the co|
|00005a60| 6d 6d 61 6e 64 20 69 6e | 74 65 72 70 72 65 74 65 |mmand in|terprete|
|00005a70| 72 27 73 20 69 64 65 61 | 2c 20 61 73 73 75 6d 69 |r's idea|, assumi|
|00005a80| 6e 67 20 69 74 20 68 61 | 73 20 6f 6e 65 2e 0a 0a |ng it ha|s one...|
|00005a90| 41 73 73 75 6d 65 73 20 | 68 69 73 74 6f 72 79 20 |Assumes |history |
|00005aa0| 73 79 6e 74 61 78 20 69 | 73 20 6c 69 6b 65 20 74 |syntax i|s like t|
|00005ab0| 79 70 69 63 61 6c 20 55 | 6e 2a 78 20 73 68 65 6c |ypical U|n*x shel|
|00005ac0| 6c 73 27 2e 20 20 48 6f | 77 65 76 65 72 2c 20 73 |ls'. Ho|wever, s|
|00005ad0| 69 6e 63 65 20 65 6d 61 | 63 73 0a 63 61 6e 6e 6f |ince ema|cs.canno|
|00005ae0| 74 20 6b 6e 6f 77 20 74 | 68 65 20 69 6e 74 65 72 |t know t|he inter|
|00005af0| 70 72 65 74 65 72 27 73 | 20 69 64 65 61 20 6f 66 |preter's| idea of|
|00005b00| 20 69 6e 70 75 74 20 6c | 69 6e 65 20 6e 75 6d 62 | input l|ine numb|
|00005b10| 65 72 73 2c 20 61 73 73 | 75 6d 69 6e 67 20 69 74 |ers, ass|uming it|
|00005b20| 20 68 61 73 20 6f 6e 65 | 2c 0a 69 74 20 63 61 6e | has one|,.it can|
|00005b30| 6e 6f 74 20 65 78 70 61 | 6e 64 20 61 62 73 6f 6c |not expa|nd absol|
|00005b40| 75 74 65 20 69 6e 70 75 | 74 20 6c 69 6e 65 20 6e |ute inpu|t line n|
|00005b50| 75 6d 62 65 72 20 72 65 | 66 65 72 65 6e 63 65 73 |umber re|ferences|
|00005b60| 2e 0a 0a 49 66 20 74 68 | 65 20 6f 70 74 69 6f 6e |...If th|e option|
|00005b70| 61 6c 20 61 72 67 75 6d | 65 6e 74 20 53 49 4c 45 |al argum|ent SILE|
|00005b80| 4e 54 20 69 73 20 6e 6f | 6e 2d 6e 69 6c 2c 20 6e |NT is no|n-nil, n|
|00005b90| 65 76 65 72 20 63 6f 6d | 70 6c 61 69 6e 0a 65 76 |ever com|plain.ev|
|00005ba0| 65 6e 20 69 66 20 68 69 | 73 74 6f 72 79 20 72 65 |en if hi|story re|
|00005bb0| 66 65 72 65 6e 63 65 20 | 73 65 65 6d 73 20 65 72 |ference |seems er|
|00005bc0| 72 6f 6e 65 6f 75 73 2e | 0a 0a 53 65 65 20 60 63 |roneous.|..See `c|
|00005bd0| 6f 6d 69 6e 74 2d 6d 61 | 67 69 63 2d 73 70 61 63 |omint-ma|gic-spac|
|00005be0| 65 27 20 61 6e 64 20 60 | 63 6f 6d 69 6e 74 2d 72 |e' and `|comint-r|
|00005bf0| 65 70 6c 61 63 65 2d 62 | 79 2d 65 78 70 61 6e 64 |eplace-b|y-expand|
|00005c00| 65 64 2d 68 69 73 74 6f | 72 79 2d 62 65 66 6f 72 |ed-histo|ry-befor|
|00005c10| 65 2d 70 6f 69 6e 74 27 | 2e 0a 0a 52 65 74 75 72 |e-point'|...Retur|
|00005c20| 6e 73 20 74 20 69 66 20 | 73 75 63 63 65 73 73 66 |ns t if |successf|
|00005c30| 75 6c 2e 22 20 6e 69 6c | 5d 29 0a 28 64 65 66 61 |ul." nil|]).(defa|
|00005c40| 6c 69 61 73 20 27 63 6f | 6d 69 6e 74 2d 72 65 70 |lias 'co|mint-rep|
|00005c50| 6c 61 63 65 2d 62 79 2d | 65 78 70 61 6e 64 65 64 |lace-by-|expanded|
|00005c60| 2d 68 69 73 74 6f 72 79 | 2d 62 65 66 6f 72 65 2d |-history|-before-|
|00005c70| 70 6f 69 6e 74 20 23 5b | 28 73 69 6c 65 6e 74 29 |point #[|(silent)|
|00005c80| 20 22 8a 8a c0 7f 88 60 | 29 60 5a c1 c0 21 88 60 | ".....`|)`Z..!.`|
|00005c90| 1a 1b c4 8a c0 7f 88 60 | 0b 5a 29 77 88 60 8a c0 |.......`|.Z)w.`..|
|00005ca0| 7f 88 60 0b 5a 29 57 85 | 88 01 c0 15 68 c6 55 84 |..`.Z)W.|....h.U.|
|00005cb0| 37 00 c7 5c 6e 60 5c 22 | 83 3e 00 60 54 62 88 82 |7..\n`\"|.>.`Tb..|
|00005cc0| 10 00 c8 c9 21 83 4f 00 | ca 95 62 88 cb cc 21 88 |....!.O.|..b...!.|
|00005cd0| 82 10 00 c8 cd 21 83 90 | 00 ce cf 94 cf 95 7b 21 |.....!..|......{!|
|00005ce0| 53 89 1e 10 d1 0e 12 21 | 58 83 84 00 d3 d4 d5 0e |S......!|X.......|
|00005cf0| 10 21 d6 94 d6 95 23 d7 | 89 23 88 0e 10 15 cb d8 |.!....#.|.#......|
|00005d00| 0e 10 54 5c 22 88 82 8c | 00 ca 95 62 88 cb d9 21 |..T\"...|...b...!|
|00005d10| 88 29 82 10 00 c8 da 21 | 84 9c 00 c8 db 21 83 b1 |.).....!|.....!..|
|00005d20| 00 d3 d4 d5 ca 21 cf 94 | cf 95 23 d7 89 23 88 cb |.....!..|..#..#..|
|00005d30| dc 21 88 82 10 00 c8 dd | 21 83 36 01 cf 94 1e 1e |.!......|!.6.....|
|00005d40| cf 95 1e 1f d6 94 1e 20 | d6 95 1e 21 0e 20 86 ce |....... |...!. ..|
|00005d50| 00 0e 1e 0e 21 86 d5 00 | 0e 1f 7b 1e 5c 22 e3 20 |....!...|..{.\". |
|00005d60| 1e 24 e5 8e c8 e6 21 2a | 83 e9 00 e7 82 ea 00 e8 |.$....!*|........|
|00005d70| 1e 29 e3 20 1e 2a eb 8e | ec 0e 29 ed 0e 5c 22 21 |.). .*..|..)..\"!|
|00005d80| 50 cf 5c 22 2a 89 1e 2e | 84 16 01 ca 95 62 88 0e |P.\"*...|.....b..|
|00005d90| 2f 84 31 01 cb f0 21 88 | f1 20 88 82 31 01 0e 2e |/.1...!.|. ..1...|
|00005da0| 15 d3 d4 f2 0e 12 0e 2e | 5c 22 f3 94 f3 95 23 d7 |........|\"....#.|
|00005db0| 89 23 88 cb d8 0e 2e 54 | 5c 22 88 2e 07 82 10 00 |.#.....T|\"......|
|00005dc0| c8 f4 21 83 81 01 cf 94 | cf 95 7b d6 94 d6 95 7b |..!.....|..{....{|
|00005dd0| c0 1e 2e 1e 35 1e 36 d3 | d5 ca 21 d7 89 23 88 60 |....5.6.|..!..#.`|
|00005de0| 16 2e ca 94 62 88 f7 0e | 36 0e 2e d7 23 84 72 01 |....b...|6...#.r.|
|00005df0| 0e 2f 84 7d 01 f8 f0 21 | 88 82 7d 01 d3 0e 35 d7 |./.}...!|..}...5.|
|00005e00| 89 23 88 cb f9 21 88 2b | 82 10 00 ca 95 62 88 82 |.#...!.+|.....b..|
|00005e10| 10 00 2b 87 22 20 5b 6e | 69 6c 20 63 6f 6d 69 6e |..+." [n|il comin|
|00005e20| 74 2d 62 6f 6c 20 73 74 | 61 72 74 20 74 6f 65 6e |t-bol st|art toen|
|00005e30| 64 20 22 5e 21 5e 22 20 | 63 6f 6d 69 6e 74 2d 69 |d "^!^" |comint-i|
|00005e40| 6e 70 75 74 2d 72 69 6e | 67 2d 69 6e 64 65 78 20 |nput-rin|g-index |
|00005e50| 39 32 20 63 6f 6d 69 6e | 74 2d 77 69 74 68 69 6e |92 comin|t-within|
|00005e60| 2d 71 75 6f 74 65 73 20 | 6c 6f 6f 6b 69 6e 67 2d |-quotes |looking-|
|00005e70| 61 74 20 22 21 5b 30 2d | 39 5d 2b 5c 5c 28 24 5c |at "![0-|9]+\\($\|
|00005e80| 5c 7c 5b 5e 2d 5d 5c 5c | 29 22 20 30 20 6d 65 73 |\|[^-]\\|)" 0 mes|
|00005e90| 73 61 67 65 20 22 41 62 | 73 6f 6c 75 74 65 20 72 |sage "Ab|solute r|
|00005ea0| 65 66 65 72 65 6e 63 65 | 20 63 61 6e 6e 6f 74 20 |eference| cannot |
|00005eb0| 62 65 20 65 78 70 61 6e | 64 65 64 22 20 22 21 2d |be expan|ded" "!-|
|00005ec0| 5c 5c 28 5b 30 2d 39 5d | 2b 5c 5c 29 5c 5c 28 3a |\\([0-9]|+\\)\\(:|
|00005ed0| 3f 5b 30 2d 39 5e 24 2a | 2d 5d 2b 5c 5c 29 3f 22 |?[0-9^$*|-]+\\)?"|
|00005ee0| 20 73 74 72 69 6e 67 2d | 74 6f 2d 6e 75 6d 62 65 | string-|to-numbe|
|00005ef0| 72 20 31 20 6e 75 6d 62 | 65 72 20 72 69 6e 67 2d |r 1 numb|er ring-|
|00005f00| 6c 65 6e 67 74 68 20 63 | 6f 6d 69 6e 74 2d 69 6e |length c|omint-in|
|00005f10| 70 75 74 2d 72 69 6e 67 | 20 72 65 70 6c 61 63 65 |put-ring| replace|
|00005f20| 2d 6d 61 74 63 68 20 63 | 6f 6d 69 6e 74 2d 61 72 |-match c|omint-ar|
|00005f30| 67 73 20 63 6f 6d 69 6e | 74 2d 70 72 65 76 69 6f |gs comin|t-previo|
|00005f40| 75 73 2d 69 6e 70 75 74 | 2d 73 74 72 69 6e 67 20 |us-input|-string |
|00005f50| 32 20 74 20 22 48 69 73 | 74 6f 72 79 20 69 74 65 |2 t "His|tory ite|
|00005f60| 6d 3a 20 25 64 22 20 22 | 52 65 6c 61 74 69 76 65 |m: %d" "|Relative|
|00005f70| 20 72 65 66 65 72 65 6e | 63 65 20 65 78 63 65 65 | referen|ce excee|
|00005f80| 64 73 20 69 6e 70 75 74 | 20 68 69 73 74 6f 72 79 |ds input| history|
|00005f90| 20 73 69 7a 65 22 20 22 | 21 21 3f 3a 3f 5c 5c 28 | size" "|!!?:?\\(|
|00005fa0| 5b 30 2d 39 5e 24 2a 2d | 5d 2b 5c 5c 29 22 20 22 |[0-9^$*-|]+\\)" "|
|00005fb0| 21 21 22 20 22 48 69 73 | 74 6f 72 79 20 69 74 65 |!!" "His|tory ite|
|00005fc0| 6d 3a 20 70 72 65 76 69 | 6f 75 73 22 20 22 21 5c |m: previ|ous" "!\|
|00005fd0| 5c 3f 3f 5c 5c 28 7b 5c | 5c 28 2e 2b 5c 5c 29 7d |\??\\({\|\(.+\\)}|
|00005fe0| 5c 5c 7c 5c 5c 28 5c 5c | 73 77 2b 5c 5c 29 5c 5c |\\|\\(\\|sw+\\)\\|
|00005ff0| 29 5c 5c 28 3a 3f 5b 30 | 2d 39 5e 24 2a 2d 5d 2b |)\\(:?[0|-9^$*-]+|
|00006000| 5c 5c 29 3f 22 20 6d 62 | 31 20 6d 65 31 20 6d 62 |\\)?" mb|1 me1 mb|
|00006010| 32 20 6d 65 32 20 65 78 | 70 20 6d 61 74 63 68 2d |2 me2 ex|p match-|
|00006020| 64 61 74 61 20 6d 61 74 | 63 68 2d 64 61 74 61 20 |data mat|ch-data |
|00006030| 28 28 73 74 6f 72 65 2d | 6d 61 74 63 68 2d 64 61 |((store-|match-da|
|00006040| 74 61 20 6d 61 74 63 68 | 2d 64 61 74 61 29 29 20 |ta match|-data)) |
|00006050| 22 21 5c 5c 3f 22 20 22 | 22 20 22 5e 22 20 70 72 |"!\\?" "|" "^" pr|
|00006060| 65 66 20 6d 61 74 63 68 | 2d 64 61 74 61 20 28 28 |ef match|-data ((|
|00006070| 73 74 6f 72 65 2d 6d 61 | 74 63 68 2d 64 61 74 61 |store-ma|tch-data|
|00006080| 20 6d 61 74 63 68 2d 64 | 61 74 61 29 29 20 63 6f | match-d|ata)) co|
|00006090| 6d 69 6e 74 2d 70 72 65 | 76 69 6f 75 73 2d 6d 61 |mint-pre|vious-ma|
|000060a0| 74 63 68 69 6e 67 2d 69 | 6e 70 75 74 2d 73 74 72 |tching-i|nput-str|
|000060b0| 69 6e 67 2d 70 6f 73 69 | 74 69 6f 6e 20 72 65 67 |ing-posi|tion reg|
|000060c0| 65 78 70 2d 71 75 6f 74 | 65 20 70 6f 73 20 73 69 |exp-quot|e pos si|
|000060d0| 6c 65 6e 74 20 22 4e 6f | 74 20 66 6f 75 6e 64 22 |lent "No|t found"|
|000060e0| 20 64 69 6e 67 20 72 69 | 6e 67 2d 72 65 66 20 34 | ding ri|ng-ref 4|
|000060f0| 20 22 5c 5c 5e 5c 5c 28 | 5b 5e 5e 5d 2b 5c 5c 29 | "\\^\\(|[^^]+\\)|
|00006100| 5c 5c 5e 3f 5c 5c 28 5b | 5e 5e 5d 2a 5c 5c 29 5c |\\^?\\([|^^]*\\)\|
|00006110| 5c 5e 3f 22 20 6e 65 77 | 20 6f 6c 64 20 73 65 61 |\^?" new| old sea|
|00006120| 72 63 68 2d 66 6f 72 77 | 61 72 64 20 65 72 72 6f |rch-forw|ard erro|
|00006130| 72 20 22 48 69 73 74 6f | 72 79 20 69 74 65 6d 3a |r "Histo|ry item:|
|00006140| 20 73 75 62 73 74 69 74 | 75 74 65 64 22 5d 20 36 | substit|uted"] 6|
|00006150| 20 22 5c 0a 45 78 70 61 | 6e 64 20 64 69 72 65 63 | "\.Expa|nd direc|
|00006160| 74 6f 72 79 20 73 74 61 | 63 6b 20 72 65 66 65 72 |tory sta|ck refer|
|00006170| 65 6e 63 65 20 62 65 66 | 6f 72 65 20 70 6f 69 6e |ence bef|ore poin|
|00006180| 74 2e 0a 53 65 65 20 60 | 63 6f 6d 69 6e 74 2d 72 |t..See `|comint-r|
|00006190| 65 70 6c 61 63 65 2d 62 | 79 2d 65 78 70 61 6e 64 |eplace-b|y-expand|
|000061a0| 65 64 2d 68 69 73 74 6f | 72 79 27 2e 20 20 52 65 |ed-histo|ry'. Re|
|000061b0| 74 75 72 6e 73 20 74 20 | 69 66 20 73 75 63 63 65 |turns t |if succe|
|000061c0| 73 73 66 75 6c 2e 22 5d | 29 0a 28 64 65 66 61 6c |ssful."]|).(defal|
|000061d0| 69 61 73 20 27 63 6f 6d | 69 6e 74 2d 6d 61 67 69 |ias 'com|int-magi|
|000061e0| 63 2d 73 70 61 63 65 20 | 23 5b 28 61 72 67 29 20 |c-space |#[(arg) |
|000061f0| 22 c0 20 88 c1 5c 6e 21 | 87 22 20 5b 63 6f 6d 69 |". ..\n!|." [comi|
|00006200| 6e 74 2d 72 65 70 6c 61 | 63 65 2d 62 79 2d 65 78 |nt-repla|ce-by-ex|
|00006210| 70 61 6e 64 65 64 2d 68 | 69 73 74 6f 72 79 20 73 |panded-h|istory s|
|00006220| 65 6c 66 2d 69 6e 73 65 | 72 74 2d 63 6f 6d 6d 61 |elf-inse|rt-comma|
|00006230| 6e 64 20 61 72 67 5d 20 | 32 20 22 5c 0a 45 78 70 |nd arg] |2 "\.Exp|
|00006240| 61 6e 64 20 69 6e 70 75 | 74 20 68 69 73 74 6f 72 |and inpu|t histor|
|00006250| 79 20 72 65 66 65 72 65 | 6e 63 65 73 20 62 65 66 |y refere|nces bef|
|00006260| 6f 72 65 20 70 6f 69 6e | 74 20 61 6e 64 20 69 6e |ore poin|t and in|
|00006270| 73 65 72 74 20 41 52 47 | 20 73 70 61 63 65 73 2e |sert ARG| spaces.|
|00006280| 0a 41 20 75 73 65 66 75 | 6c 20 63 6f 6d 6d 61 6e |.A usefu|l comman|
|00006290| 64 20 74 6f 20 62 69 6e | 64 20 74 6f 20 53 50 43 |d to bin|d to SPC|
|000062a0| 2e 20 20 53 65 65 20 60 | 63 6f 6d 69 6e 74 2d 72 |. See `|comint-r|
|000062b0| 65 70 6c 61 63 65 2d 62 | 79 2d 65 78 70 61 6e 64 |eplace-b|y-expand|
|000062c0| 65 64 2d 68 69 73 74 6f | 72 79 27 2e 22 20 22 70 |ed-histo|ry'." "p|
|000062d0| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 63 |"]).(def|alias 'c|
|000062e0| 6f 6d 69 6e 74 2d 77 69 | 74 68 69 6e 2d 71 75 6f |omint-wi|thin-quo|
|000062f0| 74 65 73 20 23 5b 28 62 | 65 67 20 65 6e 64 29 20 |tes #[(b|eg end) |
|00006300| 22 c0 c1 5c 6e 0b 23 c0 | c4 5c 6e 0b 23 1d 1e 06 |"..\n.#.|.\n.#...|
|00006310| c7 0e 06 c8 5c 22 c9 55 | 86 1d 00 c7 0d c8 5c 22 |....\".U|......\"|
|00006320| c9 55 2a 87 22 20 5b 63 | 6f 6d 69 6e 74 2d 68 6f |.U*." [c|omint-ho|
|00006330| 77 2d 6d 61 6e 79 2d 72 | 65 67 69 6f 6e 20 22 5c |w-many-r|egion "\|
|00006340| 5c 28 5e 5c 5c 7c 5b 5e | 5c 5c 5c 5c 5d 5c 5c 29 |\(^\\|[^|\\\\]\\)|
|00006350| 27 22 20 62 65 67 20 65 | 6e 64 20 22 5c 5c 28 5e |'" beg e|nd "\\(^|
|00006360| 5c 5c 7c 5b 5e 5c 5c 5c | 5c 5d 5c 5c 29 5c 22 22 |\\|[^\\\|\]\\)\""|
|00006370| 20 63 6f 75 6e 74 64 71 | 20 63 6f 75 6e 74 73 71 | countdq| countsq|
|00006380| 20 6d 6f 64 20 32 20 31 | 5d 20 35 20 22 5c 0a 52 | mod 2 1|] 5 "\.R|
|00006390| 65 74 75 72 6e 20 74 20 | 69 66 20 74 68 65 20 6e |eturn t |if the n|
|000063a0| 75 6d 62 65 72 20 6f 66 | 20 71 75 6f 74 65 73 20 |umber of| quotes |
|000063b0| 62 65 74 77 65 65 6e 20 | 42 45 47 20 61 6e 64 20 |between |BEG and |
|000063c0| 45 4e 44 20 69 73 20 6f | 64 64 2e 0a 51 75 6f 74 |END is o|dd..Quot|
|000063d0| 65 73 20 61 72 65 20 73 | 69 6e 67 6c 65 20 61 6e |es are s|ingle an|
|000063e0| 64 20 64 6f 75 62 6c 65 | 2e 22 5d 29 0a 28 64 65 |d double|."]).(de|
|000063f0| 66 61 6c 69 61 73 20 27 | 63 6f 6d 69 6e 74 2d 68 |falias '|comint-h|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.